1 /* Test macro expansions in <stdbool.h> in C2x. */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
10 extern void abort (void);
11 extern void exit (int);
12 extern int strcmp (const char *, const char *);
15 #error "false unsigned in #if"
19 #error "false not 0 in #if"
23 #error "true unsigned in #if"
27 #error "true not 1 in #if"
33 if (_Generic (true, _Bool : 1) != 1)
37 if (_Generic (false, _Bool : 1) != 1)
41 if (strcmp (str (__bool_true_false_are_defined), "1") != 0)