gcc/testsuite/gcc.target/powerpc/darwin-bool-2.c
raw| 1 | /* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */ |
| 2 | /* Matt Austern <[email protected]> */ |
| 3 | /* { dg-do run { target powerpc*-*-darwin* } } */ |
| 4 | /* { dg-options "-mone-byte-bool" } */ |
| 5 | |
| 6 | int dummy1[sizeof(_Bool)]; |
| 7 | int dummy2[2 - sizeof(_Bool)]; |
| 8 | |
| 9 | int main() |
| 10 | { |
| 11 | return sizeof(_Bool) == 1 ? 0 : 1; |
| 12 | } |