rt_gccstream/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c

12 lines
287 B
C

/* Check that sizeof(bool) is 4 if we don't use special options. */
/* Matt Austern <austern@apple.com> */
/* { dg-do run { target { powerpc*-*-darwin* && ilp32 } } } */
int dummy1[sizeof(_Bool) - 3];
int dummy2[5 - sizeof(_Bool)];
int main()
{
return sizeof(_Bool) == 4 ? 0 : 1;
}