Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / darwin-bool-2.c
blobfdbe1a2a4b8288df5cfb94d3515b885d5de08556
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" } */
6 int dummy1[sizeof(_Bool)];
7 int dummy2[2 - sizeof(_Bool)];
9 int main()
11 return sizeof(_Bool) == 1 ? 0 : 1;