1 /* Test for redefining macros with insignificant (i.e. whitespace) 2 differences. */ 3 4 /* { dg-do preprocess } */ 5 6 #define foo bar 7 #define /* x */ foo /* x */ bar /* x */ 8 9 #define quux(thud) a one and a thud and a two 10 #define /**/ quux( thud ) /**/ a one and a /**/ thud /**/ and /**/ a two 11 #define quux(thud) a one and a thud and a two /* bah */ 12 13 /* { dg-bogus "redefined" "foo redefined" { target *-*-* } 7 } */ 14 /* { dg-bogus "redefined" "quux redefined" { target *-*-* } 10 } */ 15 /* { dg-bogus "redefined" "quux redefined" { target *-*-* } 11 } */ 16 17 /* { dg-bogus "previous def" "foo prev def" { target *-*-* } 6 } */ 18 /* { dg-bogus "previous def" "quux prev def" { target *-*-* } 9 } */ 19 /* { dg-bogus "previous def" "quux prev def" { target *-*-* } 10 } */ 20