annotate gcc/testsuite/gcc.dg/cpp/redef1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test for redefining macros with insignificant (i.e. whitespace)
kono
parents:
diff changeset
2 differences. */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* { dg-do preprocess } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #define foo bar
kono
parents:
diff changeset
7 #define /* x */ foo /* x */ bar /* x */
kono
parents:
diff changeset
8 /* { dg-bogus "redefined" "foo redefined" { target *-*-* } .-1 } */
kono
parents:
diff changeset
9 /* { dg-bogus "previous def" "foo prev def" { target *-*-* } .-3 } */
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 #define quux(thud) a one and a thud and a two /* { dg-line quux_def_1 } */
kono
parents:
diff changeset
12 #define /**/ quux( thud ) /**/ a one and a /**/ thud /**/ and /**/ a two /* { dg-line quux_def_2 } */
kono
parents:
diff changeset
13 /* { dg-bogus "redefined" "quux redefined" { target *-*-* } quux_def_2 } */
kono
parents:
diff changeset
14 /* { dg-bogus "previous def" "quux prev def" { target *-*-* } quux_def_1 } */
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 #define quux(thud) a one and a thud and a two /* bah */ /* { dg-line quux_def_3 } */
kono
parents:
diff changeset
17 /* { dg-bogus "redefined" "quux redefined" { target *-*-* } quux_def_3 } */
kono
parents:
diff changeset
18 /* { dg-bogus "previous def" "quux prev def" { target *-*-* } quux_def_2 } */