gcc/testsuite/g++.target/powerpc/undef-bool-1.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS -mvsx" } */ |
| 3 | /* { dg-require-effective-target lp64 } */ |
| 4 | /* { dg-require-effective-target powerpc_vsx } */ |
| 5 | |
| 6 | /* Test to ensure that "bool" gets undef'd in xmmintrin.h when |
| 7 | we require strict ANSI. */ |
| 8 | |
| 9 | #include <xmmintrin.h> |
| 10 | |
| 11 | bool foo (int x) |
| 12 | { |
| 13 | return x == 2; |
| 14 | } |
| 15 |