OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 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 }