llvm-for-llvmta/tools/clang/test/ASTMerge/generic-selection-expr/Inputs/generic.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

7 lines
205 B
C

void f() {
int x;
float y;
_Static_assert(_Generic(x, float : 0, int : 1), "Incorrect semantics of _Generic");
_Static_assert(_Generic(y, float : 1, int : 0), "Incorrect semantics of _Generic");
}