]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-bool-limits-1.c
1 /* Test limits for _Bool in <limits.h> in C2x. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x" } */
8 # error "missing BOOL_MAX"
12 # error "missing BOOL_WIDTH"
15 /* In principle _Bool can support values wider than 1 bit, stored via
16 type punning, but this is not supported by GCC. */
18 _Static_assert (BOOL_MAX
== 1, "bad BOOL_MAX");
19 _Static_assert (BOOL_WIDTH
== 1, "bad BOOL_WIDTH");