1 /* Test bool, true and false keywords in C2x. */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
5 extern void abort (void);
6 extern void exit (int);
9 #error "false unsigned in #if"
13 #error "false not 0 in #if"
17 #error "true unsigned in #if"
21 #error "true not 1 in #if"
27 _Static_assert (false == 0);
28 _Static_assert (true == 1);
33 if (_Generic (true, bool : 1) != 1)
37 if (_Generic (false, bool : 1) != 1)