summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/darwin-bool-1.c
blob: 2f147d073816f923d70d696243325e558225d083 (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* && ilp32 } } } */

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

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