2 Check that __ARM_NEON_FP redefinition warns for user setting and not for
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
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 } */