gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
raw| 1 | /* Check that sizeof(bool) is 4 if we don't use special options. */ |
| 2 | /* Matt Austern <[email protected]> */ |
| 3 | /* { dg-do run { target { powerpc*-*-darwin* && ilp32 } } } */ |
| 4 | /* We do need to suppress the ISO C doesn't support _Bool message tho. */ |
| 5 | /* { dg-options "-Wno-pedantic" } */ |
| 6 | |
| 7 | int dummy1[sizeof(_Bool) - 3]; |
| 8 | int dummy2[5 - sizeof(_Bool)]; |
| 9 | |
| 10 | int main() |
| 11 | { |
| 12 | return sizeof(_Bool) == 4 ? 0 : 1; |
| 13 | } |