OSDN Git Service

2007-07-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / darwin-bool-2.c
1 /* Check that sizeof(bool) is 1 if we use the -mone-byte-bool option. */
2 /* Matt Austern  <austern@apple.com> */
3 /* { dg-do run { target powerpc*-*-darwin* } } */
4 /* { dg-options "-mone-byte-bool" } */
5
6 int dummy1[sizeof(_Bool)];
7 int dummy2[2 - sizeof(_Bool)];
8
9 int main()
10 {
11   return sizeof(_Bool) == 1 ? 0 : 1;
12 }