gcc/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr48192.c
bloba0ea3aec46aae840a436ed5346ee221f6afc4a8d
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O3 -mcpu=power7 -std=gnu89" } */
7 /* Make sure that the conditional macros vector, bool, and pixel are not
8 considered as being defined. */
10 #ifdef bool
11 #error "bool is considered defined"
12 #endif
14 #ifdef vector
15 #error "vector is considered defined"
16 #endif
18 #ifdef pixel
19 #error "pixel is condsidered defined"
20 #endif
22 #if defined(bool)
23 #error "bool is considered defined"
24 #endif
26 #if defined(vector)
27 #error "vector is considered defined"
28 #endif
30 #if defined(pixel)
31 #error "pixel is condsidered defined"
32 #endif
34 #ifndef bool
35 #else
36 #error "bool is considered defined"
37 #endif
39 #ifndef vector
40 #else
41 #error "vector is considered defined"
42 #endif
44 #ifndef pixel
45 #else
46 #error "pixel is condsidered defined"
47 #endif
49 #define bool long double
50 bool pixel = 0;