aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
blob: f444edff2950b665696c1161e46c93bc8e33c318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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 } } } */
/* We do need to suppress the ISO C doesn't support _Bool message tho.  */
/* { dg-options "-Wno-pedantic" } */

int dummy1[sizeof(_Bool) - 3];
int dummy2[5 - sizeof(_Bool)];

int main()
{
  return sizeof(_Bool) == 4 ? 0 : 1;
}