Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/undef-bool-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -std=c11 -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. Subsequent use of bool needs stdbool.h.
8 altivec.h should eventually avoid defining bool, vector, and
9 pixel, following distro testing. */
10
11 #include <xmmintrin.h>
12
13 bool foo (int x) /* { dg-error "unknown type name 'bool'" } */
14 {
15 return x == 2;
16 }
17