summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/darwin-bool-1.c
blob: ef1e98b6ef25cce0871bc27a72fe738d3a28be06 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Check that sizeof(bool) is 4 if we don't use special options. */
/* Matt Austern  <austern@apple.com> */
/* { dg-do run { target powerpc*-*-darwin* } } */

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

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