PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr69180.c
blob998c73426a24a73af38304a6672622a6eaa7c4dc
1 /* PR target/69180
2 Check that __ARM_NEON_FP redefinition warns for user setting and not for
3 #pragma GCC target. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target arm_neon_ok } */
6 /* { dg-options " " } */ /* Necessary to prevent the harness from adding -ansi -pedantic-errors to the command line. */
7 /* { dg-add-options arm_neon } */
8 #pragma GCC target ("fpu=neon-fp-armv8")
10 #define __ARM_NEON_FP 0
11 #define __ARM_FP 0
12 #define __ARM_FEATURE_LDREX 0
14 /* { dg-warning ".__ARM_NEON_FP. redefined" "" { target *-*-* } 10 } */
15 /* { dg-warning ".__ARM_FP. redefined" "" { target *-*-* } 11 } */
16 /* { dg-warning ".__ARM_FEATURE_LDREX. redefined" "" { target *-*-* } 12 } */