aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/powerpc/darwin-bool-2.c
blob: fdbe1a2a4b8288df5cfb94d3515b885d5de08556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
/* Matt Austern  <austern@apple.com> */
/* { dg-do run { target powerpc*-*-darwin* } } */
/* { dg-options "-mone-byte-bool" } */

int dummy1[sizeof(_Bool)];
int dummy2[2 - sizeof(_Bool)];

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