xref: /llvm-project/clang/test/ASTMerge/generic-selection-expr/Inputs/generic.c (revision 1844ab770cb9380a1896d83b1863b93766ffdf22)
1 void f() {
2   int x;
3   float y;
4   _Static_assert(_Generic(x, float : 0, int : 1), "Incorrect semantics of _Generic");
5   _Static_assert(_Generic(y, float : 1, int : 0), "Incorrect semantics of _Generic");
6 }
7