xref: /llvm-project/clang/test/ASTMerge/generic-selection-expr/Inputs/generic.c (revision 25098736c1b6a716711a64fa45f7f34ccdbef6d1)

f(void)1*25098736SAaron Ballman void f(void) {
21844ab77STom Roeder   int x;
31844ab77STom Roeder   float y;
41844ab77STom Roeder   _Static_assert(_Generic(x, float : 0, int : 1), "Incorrect semantics of _Generic");
51844ab77STom Roeder   _Static_assert(_Generic(y, float : 1, int : 0), "Incorrect semantics of _Generic");
61844ab77STom Roeder }
7