aboutsummaryrefslogtreecommitdiff
path: root/clang/test/ASTMerge/generic-selection-expr/Inputs/generic.c
blob: 85a0b57e892968ac2c1a42ddaf49413b5eb1efb2 (plain)
1
2
3
4
5
6
void f(void) {
  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");
}