1 /* Test macro expansions in <stdbool.h> in C99. */
3 /* { dg-options "-std=c99 -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 (strcmp (str (bool), "_Bool") != 0)
37 if (strcmp (str (true), "1") != 0)
41 if (strcmp (str (false), "0") != 0)
43 if (strcmp (str (__bool_true_false_are_defined
), "1") != 0)