diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
32 files changed, 375 insertions, 375 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/Wunknown-pragmas-1.c b/gcc/testsuite/gcc.dg/cpp/Wunknown-pragmas-1.c index 4f6a04be45a..06a244e097d 100644 --- a/gcc/testsuite/gcc.dg/cpp/Wunknown-pragmas-1.c +++ b/gcc/testsuite/gcc.dg/cpp/Wunknown-pragmas-1.c @@ -5,25 +5,25 @@ /* Make sure we get warnings in the expected lines. */ -#pragma unknown1 /* { dg-warning "unknown1" "unknown1" } */ +#pragma unknown1 /* { dg-warning "-:unknown1" "unknown1" } */ #define COMMA , #define FOO(x) x #define BAR(x) _Pragma("unknown_before") x #define BAZ(x) x _Pragma("unknown_after") -int _Pragma("unknown2") bar1; /* { dg-warning "unknown2" "unknown2" } */ +int _Pragma("unknown2") bar1; /* { dg-warning "-:unknown2" "unknown2" } */ -FOO(int _Pragma("unknown3") bar2); /* { dg-warning "unknown3" "unknown3" } */ +FOO(int _Pragma("unknown3") bar2); /* { dg-warning "-:unknown3" "unknown3" } */ -int BAR(bar3); /* { dg-warning "unknown_before" "unknown_before 1" } */ +int BAR(bar3); /* { dg-warning "-:unknown_before" "unknown_before 1" } */ -BAR(int bar4); /* { dg-warning "unknown_before" "unknown_before 2" } */ +BAR(int bar4); /* { dg-warning "-:unknown_before" "unknown_before 2" } */ -int BAZ(bar5); /* { dg-warning "unknown_after" "unknown_after 1" } */ +int BAZ(bar5); /* { dg-warning "-:unknown_after" "unknown_after 1" } */ -int BAZ(bar6;) /* { dg-warning "unknown_after" "unknown_after 2" } */ +int BAZ(bar6;) /* { dg-warning "-:unknown_after" "unknown_after 2" } */ -FOO(int bar7; _Pragma("unknown4")) /* { dg-warning "unknown4" "unknown4" } */ +FOO(int bar7; _Pragma("unknown4")) /* { dg-warning "-:unknown4" "unknown4" } */ -#pragma unknown5 /* { dg-warning "unknown5" "unknown5" } */ +#pragma unknown5 /* { dg-warning "-:unknown5" "unknown5" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/Wunused.c b/gcc/testsuite/gcc.dg/cpp/Wunused.c index ac363ad04b8..d6f76288cd7 100644 --- a/gcc/testsuite/gcc.dg/cpp/Wunused.c +++ b/gcc/testsuite/gcc.dg/cpp/Wunused.c @@ -15,9 +15,9 @@ #define used3 /* { dg-bogus "used" } */ #define used4 used4 /* { dg-bogus "used" } */ -#define unused5 /* { dg-warning "used" } */ -#define unused6 /* { dg-warning "used" } */ -#define unused7() /* { dg-warning "used" } */ +#define unused5 /* { dg-warning "-:used" } */ +#define unused6 /* { dg-warning "-:used" } */ +#define unused7() /* { dg-warning "-:used" } */ #if defined used1 #endif diff --git a/gcc/testsuite/gcc.dg/cpp/macsyntx.c b/gcc/testsuite/gcc.dg/cpp/macsyntx.c index 146dcedab5f..ff7e37a0d06 100644 --- a/gcc/testsuite/gcc.dg/cpp/macsyntx.c +++ b/gcc/testsuite/gcc.dg/cpp/macsyntx.c @@ -51,15 +51,15 @@ one(ichi\ two(ichi) /* { dg-error "requires 2" } */ var0() /* OK. */ var0(ichi) /* OK. */ -var1() /* { dg-warning "requires at least one" } */ -var1(ichi) /* { dg-warning "requires at least one" } */ +var1() /* { dg-warning "requires at least one" "" { xfail *-*-* } } */ +var1(ichi) /* { dg-warning "requires at least one" "" { xfail *-*-* } } */ var1(ichi, ni) /* OK. */ /* This tests two oddities of GNU rest args - omitting a comma is OK, and backtracking a token on pasting an empty rest args. */ #define rest(x, y...) x ## y /* { dg-warning "ISO C" } */ rest(ichi,) /* OK. */ -rest(ichi) /* { dg-warning "requires at least one" } */ +rest(ichi) /* { dg-warning "requires at least one" "" { xfail *-*-* } } */ #if 23 != rest(2, 3) /* OK, no warning. */ #error 23 != 23 !! #endif diff --git a/gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c b/gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c index f79670a17cb..d4176144f5d 100644 --- a/gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c +++ b/gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c @@ -1,4 +1,4 @@ -#ifndef SOME_GUARD /* { dg-error "unterminated" } */ +#ifndef SOME_GUARD /* { dg-error "-:unterminated" } */ #if 1 /* Typo here: "endfi" should have been "endif". */ diff --git a/gcc/testsuite/gcc.dg/cpp/redef2.c b/gcc/testsuite/gcc.dg/cpp/redef2.c index 1dbc10033ed..439d33a7057 100644 --- a/gcc/testsuite/gcc.dg/cpp/redef2.c +++ b/gcc/testsuite/gcc.dg/cpp/redef2.c @@ -17,15 +17,15 @@ #define foo(x) x #define foo(x)x /* { dg-bogus "redefined" "redefined foo" } */ -/* { dg-warning "redefined" "redef mac" { target *-*-* } 7 } - { dg-warning "redefined" "redef mac" { target *-*-* } 8 } - { dg-warning "redefined" "redef mac" { target *-*-* } 9 } - { dg-warning "redefined" "redef ro" { target *-*-* } 12 } - { dg-warning "redefined" "redef va" { target *-*-* } 15 } +/* { dg-warning "-:redefined" "redef mac" { target *-*-* } 7 } + { dg-warning "-:redefined" "redef mac" { target *-*-* } 8 } + { dg-warning "-:redefined" "redef mac" { target *-*-* } 9 } + { dg-warning "-:redefined" "redef ro" { target *-*-* } 12 } + { dg-warning "-:redefined" "redef va" { target *-*-* } 15 } - { dg-message "previous" "prev def mac" { target *-*-* } 6 } - { dg-message "previous" "prev def mac" { target *-*-* } 7 } - { dg-message "previous" "prev def mac" { target *-*-* } 8 } - { dg-message "previous" "prev def ro" { target *-*-* } 11 } - { dg-message "previous" "prev def va" { target *-*-* } 14 } + { dg-message "-:previous" "prev def mac" { target *-*-* } 6 } + { dg-message "-:previous" "prev def mac" { target *-*-* } 7 } + { dg-message "-:previous" "prev def mac" { target *-*-* } 8 } + { dg-message "-:previous" "prev def ro" { target *-*-* } 11 } + { dg-message "-:previous" "prev def va" { target *-*-* } 14 } */ diff --git a/gcc/testsuite/gcc.dg/cpp/redef3.c b/gcc/testsuite/gcc.dg/cpp/redef3.c index 1c541a45bb1..4e4ef128b10 100644 --- a/gcc/testsuite/gcc.dg/cpp/redef3.c +++ b/gcc/testsuite/gcc.dg/cpp/redef3.c @@ -11,11 +11,11 @@ #define D 1 2 #define E -/* { dg-warning "redefined" "redef A" { target *-*-* } 7 } - { dg-warning "redefined" "redef B" { target *-*-* } 9 } - { dg-warning "redefined" "redef D" { target *-*-* } 11 } - { dg-warning "redefined" "redef E" { target *-*-* } 12 } - { dg-message "previous" "prev def A" { target *-*-* } 6 } - { dg-message "previous" "prev def B" { target *-*-* } 8 } - { dg-message "previous" "prev def D/E" { target *-*-* } 0 } +/* { dg-warning "-:redefined" "redef A" { target *-*-* } 7 } + { dg-warning "-:redefined" "redef B" { target *-*-* } 9 } + { dg-warning "-:redefined" "redef D" { target *-*-* } 11 } + { dg-warning "-:redefined" "redef E" { target *-*-* } 12 } + { dg-message "-:previous" "prev def A" { target *-*-* } 6 } + { dg-message "-:previous" "prev def B" { target *-*-* } 8 } + { dg-message "-:previous" "prev def D/E" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.dg/cpp/redef4.c b/gcc/testsuite/gcc.dg/cpp/redef4.c index b34635b2e42..aa6729b770b 100644 --- a/gcc/testsuite/gcc.dg/cpp/redef4.c +++ b/gcc/testsuite/gcc.dg/cpp/redef4.c @@ -4,41 +4,41 @@ /* { dg-do preprocess } */ /* { dg-options "" } */ -#define str(x) #x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) #x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) #x /* { dg-message "previous definition" } */ -#define str(x) # x /* { dg-warning "redefined" } */ +#define str(x) #x /* { dg-message "-:previous definition" } */ +#define str(x) # x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) #x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) #x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %:x /* { dg-message "previous definition" } */ -#define str(x) #x /* { dg-warning "redefined" } */ +#define str(x) %:x /* { dg-message "-:previous definition" } */ +#define str(x) #x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %:x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) %:x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %:x /* { dg-message "previous definition" } */ -#define str(x) # x /* { dg-warning "redefined" } */ +#define str(x) %:x /* { dg-message "-:previous definition" } */ +#define str(x) # x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %:x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) %:x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) # x /* { dg-message "previous definition" } */ -#define str(x) #x /* { dg-warning "redefined" } */ +#define str(x) # x /* { dg-message "-:previous definition" } */ +#define str(x) #x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) # x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) # x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) # x /* { dg-message "previous definition" } */ -#define str(x) %: x /* { dg-warning "redefined" } */ +#define str(x) # x /* { dg-message "-:previous definition" } */ +#define str(x) %: x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %: x /* { dg-message "previous definition" } */ -#define str(x) #x /* { dg-warning "redefined" } */ +#define str(x) %: x /* { dg-message "-:previous definition" } */ +#define str(x) #x /* { dg-warning "-:redefined" } */ #undef str -#define str(x) %: x /* { dg-message "previous definition" } */ -#define str(x) # x /* { dg-warning "redefined" } */ +#define str(x) %: x /* { dg-message "-:previous definition" } */ +#define str(x) # x /* { dg-warning "-:redefined" } */ #undef str #define str(x) #x @@ -54,173 +54,173 @@ #define str(x) %: x #undef str -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a#x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a#x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%:x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a%:x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a# x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a# x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a%: x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a%: x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a #x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a #x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %:x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a %:x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a # x /* { dg-message "previous definition" } */ -#define astr(x) a %: x /* { dg-warning "redefined" } */ +#define astr(x) a # x /* { dg-message "-:previous definition" } */ +#define astr(x) a %: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a#x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a#x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a# x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a# x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a%: x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a%: x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a #x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a #x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a %:x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a %:x /* { dg-warning "-:redefined" } */ #undef astr -#define astr(x) a %: x /* { dg-message "previous definition" } */ -#define astr(x) a # x /* { dg-warning "redefined" } */ +#define astr(x) a %: x /* { dg-message "-:previous definition" } */ +#define astr(x) a # x /* { dg-warning "-:redefined" } */ #undef astr #define astr(x) a#x @@ -248,173 +248,173 @@ #define astr(x) a %: x #undef astr -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x##y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x## y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x%:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x%:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ##y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ##y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%:y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%:y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x ## y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x ## y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x##y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x## y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x## y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x%:%: y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x%:%: y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x ##y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ##y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x %:%:y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x %:%:y /* { dg-warning "-:redefined" } */ #undef cat -#define cat(x,y) x %:%: y /* { dg-message "previous definition" } */ -#define cat(x,y) x ## y /* { dg-warning "redefined" } */ +#define cat(x,y) x %:%: y /* { dg-message "-:previous definition" } */ +#define cat(x,y) x ## y /* { dg-warning "-:redefined" } */ #undef cat #define cat(x,y) x##y @@ -442,28 +442,28 @@ #define cat(x,y) x %:%: y #undef cat -#define cat3(x,y,z) x##y##z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x##y####z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y##z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x##y####z /* { dg-warning "-:redefined" } */ #undef cat3 -#define cat3(x,y,z) x##y####z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x####y##z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y####z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x####y##z /* { dg-warning "-:redefined" } */ #undef cat3 -#define cat3(x,y,z) x##y####z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x##y## ##z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y####z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x##y## ##z /* { dg-warning "-:redefined" } */ #undef cat3 -#define cat3(x,y,z) x##y####z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x##y##%:%:z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y####z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x##y##%:%:z /* { dg-warning "-:redefined" } */ #undef cat3 -#define cat3(x,y,z) x##y######## ####z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x##y############z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y######## ####z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x##y############z /* { dg-warning "-:redefined" } */ #undef cat3 -#define cat3(x,y,z) x##y############z /* { dg-message "previous definition" } */ -#define cat3(x,y,z) x##y########%:%:##z /* { dg-warning "redefined" } */ +#define cat3(x,y,z) x##y############z /* { dg-message "-:previous definition" } */ +#define cat3(x,y,z) x##y########%:%:##z /* { dg-warning "-:redefined" } */ #undef cat3 #define cat3(x,y,z) x##y##z diff --git a/gcc/testsuite/gcc.dg/cpp/sysmac1.c b/gcc/testsuite/gcc.dg/cpp/sysmac1.c index 54f161e020f..55ec200ffff 100644 --- a/gcc/testsuite/gcc.dg/cpp/sysmac1.c +++ b/gcc/testsuite/gcc.dg/cpp/sysmac1.c @@ -22,5 +22,5 @@ (str); /* { dg-warning "used with arguments" } */ (sys_str); /* { dg-bogus "used with arguments" } */ -foo (one_arg); /* { dg-warning "requires at least one" } */ +foo (one_arg); /* { dg-warning "requires at least one" "" { xfail *-*-* } } */ sys_foo (one_arg); /* { dg-bogus "requires at least one" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/Wunused.c b/gcc/testsuite/gcc.dg/cpp/trad/Wunused.c index 403d617f5d0..97465f3967c 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/Wunused.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/Wunused.c @@ -14,9 +14,9 @@ #define used3 /* { dg-bogus "used" } */ #define used4 something /* { dg-bogus "used" } */ -#define unused5 /* { dg-warning "used" } */ -#define unused6 /* { dg-warning "used" } */ -#define unused7() /* { dg-warning "used" } */ +#define unused5 /* { dg-warning "-:used" } */ +#define unused6 /* { dg-warning "-:used" } */ +#define unused7() /* { dg-warning "-:used" } */ #if defined used1 #endif diff --git a/gcc/testsuite/gcc.dg/cpp/trad/argcount.c b/gcc/testsuite/gcc.dg/cpp/trad/argcount.c index 208cd44b3b0..7098caf7d76 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/argcount.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/argcount.c @@ -7,15 +7,15 @@ #define g(x, y) x y #define h() -f(); /* { dg-bogus "requires 1" "no arg is 1 empty arg" } */ -f( ); /* { dg-bogus "macro" "1 arg to 1 param macro" } */ -f(1,); /* { dg-error "passed 2" "2 args to 1 param macro" } */ -f(1,2); /* { dg-error "passed 2" "2 args to 1 param macro" } */ -h(); /* { dg-bogus "macro" "no arg to 1 param macro" } */ -h( ); /* { dg-error "passed 1" "1 arg to 0 param macro" } */ -h(1,2); /* { dg-error "passed 2" "2 args to 0 param macro" } */ -g(); /* { dg-error "requires 2" "0 args to 2 param macro" } */ -g( ); /* { dg-error "requires 2" "1 args to 2 param macro" } */ -g( ,2); /* { dg-bogus "requires 2" "2 args to 2 param macro" } */ -g(,); /* { dg-bogus "requires 2" "2 args to 2 param macro" } */ -g(1,2,3); /* { dg-error "passed 3" "3 args to 2 param macro" } */ +f(); /* { dg-bogus "-:requires 1" "no arg is 1 empty arg" } */ +f( ); /* { dg-bogus "-:macro" "1 arg to 1 param macro" } */ +f(1,); /* { dg-error "-:passed 2" "2 args to 1 param macro" } */ +f(1,2); /* { dg-error "-:passed 2" "2 args to 1 param macro" } */ +h(); /* { dg-bogus "-:macro" "no arg to 1 param macro" } */ +h( ); /* { dg-error "-:passed 1" "1 arg to 0 param macro" } */ +h(1,2); /* { dg-error "-:passed 2" "2 args to 0 param macro" } */ +g(); /* { dg-error "-:requires 2" "0 args to 2 param macro" } */ +g( ); /* { dg-error "-:requires 2" "1 args to 2 param macro" } */ +g( ,2); /* { dg-bogus "-:requires 2" "2 args to 2 param macro" } */ +g(,); /* { dg-bogus "-:requires 2" "2 args to 2 param macro" } */ +g(1,2,3); /* { dg-error "-:passed 3" "3 args to 2 param macro" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c b/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c index e2710ad5629..7d1d8252f01 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/comment-3.c @@ -3,4 +3,4 @@ /* { dg-do preprocess } */ #if 0 -#endif // /* { dg-warning "extra tokens" } */ +#endif // /* { dg-warning "-:extra tokens" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/comment.c b/gcc/testsuite/gcc.dg/cpp/trad/comment.c index 971a78a6d10..36fa90d3f37 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/comment.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/comment.c @@ -2,4 +2,4 @@ /* { dg-do preprocess } */ -/* { dg-error "unterminated comment" } +/* { dg-error "-:unterminated comment" } diff --git a/gcc/testsuite/gcc.dg/cpp/trad/defined.c b/gcc/testsuite/gcc.dg/cpp/trad/defined.c index 5fa1d93b8aa..fa4c4119d3d 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/defined.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/defined.c @@ -16,7 +16,7 @@ #error REGPARMS should be defined #endif -#define defined /* { dg-error "defined" } */ +#define defined /* { dg-error "-:defined" } */ /* No diagnostics, though you could argue there should be. */ #if defined defined diff --git a/gcc/testsuite/gcc.dg/cpp/trad/directive.c b/gcc/testsuite/gcc.dg/cpp/trad/directive.c index ee7ebcab031..0a42df62639 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/directive.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/directive.c @@ -12,7 +12,7 @@ HASH /* Directives with their #s indented are not recognized. */ #if 0 /* { dg-bogus "unterminated" } */ -#wrong /* { dg-error "invalid" } */ +#wrong /* { dg-error "-:invalid" } */ #define foo 2 #define bar + 3 diff --git a/gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c b/gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c index 5300afba708..2baa99a31c3 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c @@ -5,8 +5,8 @@ #define f(x) x -#if 2 f(/* { dg-error "unterminated" "unterminated macro in directive" } */ +#if 2 f(/* { dg-error "-:unterminated" "unterminated macro in directive" } */ ) #endif -f( /* { dg-error "unterminated" "unterminated macro" } */ +f( /* { dg-error "-:unterminated" "unterminated macro" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/funlike.c b/gcc/testsuite/gcc.dg/cpp/trad/funlike.c index db550d53c76..1af6f9fcf97 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/funlike.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/funlike.c @@ -21,5 +21,5 @@ # error /* { dg-bogus "error" "empty macro" } */ #endif -#if f paren 6) /* { dg-error "missing binary" "macro-expanded parenthesis" } */ +#if f paren 6) /* { dg-error "-:missing binary" "macro-expanded parenthesis" } */ #endif diff --git a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c index faa7bd87674..a6f9637c640 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c @@ -2,7 +2,7 @@ recognized. */ /* { dg-do preprocess } */ -/* { dg-warning "missing terminating" "bad charconst" { target *-*-* } .+2 } */ -/* { dg-error "not valid" "bad charconst" { target *-*-* } .+1 } */ +/* { dg-warning "-:missing terminating" "bad charconst" { target *-*-* } .+2 } */ +/* { dg-error "-:not valid" "bad charconst" { target *-*-* } .+1 } */ #if 'x #endif diff --git a/gcc/testsuite/gcc.dg/cpp/trad/macro.c b/gcc/testsuite/gcc.dg/cpp/trad/macro.c index 164b4ecfee6..6f8aa9ac239 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/macro.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/macro.c @@ -4,7 +4,7 @@ /* { dg-do preprocess } */ #define f(x) -#define g(x, y...) /* { dg-error "macro parameter list" } */ +#define g(x, y...) /* { dg-error "-:macro parameter list" } */ #if 0 #define f(a,b) /* { dg-bogus "passed 2 arguments" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/pr65238-4.c b/gcc/testsuite/gcc.dg/cpp/trad/pr65238-4.c index cf2f449133c..3cee7b9888b 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/pr65238-4.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/pr65238-4.c @@ -11,9 +11,9 @@ #if __has_attribute(__has_attribute(unused)) #endif -/* { dg-error "unterminated argument list invoking macro .__has_attribute." "" {target "*-*-*"} 5 } */ -/* { dg-error "#if with no expression" "" {target "*-*-*"} 5 } */ -/* { dg-error "unterminated argument list invoking macro .__has_attribute." "" {target "*-*-*"} 7 } */ -/* { dg-error "macro .__has_attribute. passed 2 arguments, but takes just 1" "" {target "*-*-*"} 9 } */ -/* { dg-error "missing ... in expression" "" {target "*-*-*"} 9 } */ -/* { dg-error "macro .__has_attribute. requires an identifier" "" {target "*-*-*"} 11 } */ +/* { dg-error "-:unterminated argument list invoking macro .__has_attribute." "" {target "*-*-*"} 5 } */ +/* { dg-error "-:#if with no expression" "" {target "*-*-*"} 5 } */ +/* { dg-error "-:unterminated argument list invoking macro .__has_attribute." "" {target "*-*-*"} 7 } */ +/* { dg-error "-:macro .__has_attribute. passed 2 arguments, but takes just 1" "" {target "*-*-*"} 9 } */ +/* { dg-error "-:missing ... in expression" "" {target "*-*-*"} 9 } */ +/* { dg-error "-:macro .__has_attribute. requires an identifier" "" {target "*-*-*"} 11 } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c b/gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c index b5fd7af7f5f..31c020bad87 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/recurse-1.c @@ -4,7 +4,7 @@ /* { dg-do preprocess } */ #define foo foo -foo /* { dg-error "detected recursion" } */ +foo /* { dg-error "-:detected recursion" } */ #define bar a bar b -bar /* { dg-error "detected recursion" } */ +bar /* { dg-error "-:detected recursion" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c b/gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c index 5c6550fae2a..3e5929d5a04 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/recurse-2.c @@ -4,13 +4,13 @@ /* { dg-do preprocess } */ #define foo() foo() -foo(); /* { dg-error "detected recursion" } */ +foo(); /* { dg-error "-:detected recursion" } */ #define bar() bar baz() bar bar(); /* { dg-bogus "detected recursion" } */ #define baz() foo() -baz(); /* { dg-error "detected recursion" } */ +baz(); /* { dg-error "-:detected recursion" } */ #define a(x) x(a) -a(a); /* { dg-error "detected recursion" } */ +a(a); /* { dg-error "-:detected recursion" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/redef2.c b/gcc/testsuite/gcc.dg/cpp/trad/redef2.c index 5fcd5eb32e8..ad10b86fd3d 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/redef2.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/redef2.c @@ -2,31 +2,31 @@ /* { dg-do preprocess } */ -#define foo bar /* { dg-message "previous def" "foo prev def" } */ -#define foo barr /* { dg-warning "redefined" "foo redefined" } */ +#define foo bar /* { dg-message "-:previous def" "foo prev def" } */ +#define foo barr /* { dg-warning "-:redefined" "foo redefined" } */ #undef foo -#define foo bar /* { dg-message "previous def" "foo prev def 2" } */ -#define foo() bar /* { dg-warning "redefined" "foo redefined 2" } */ +#define foo bar /* { dg-message "-:previous def" "foo prev def 2" } */ +#define foo() bar /* { dg-warning "-:redefined" "foo redefined 2" } */ #undef foo -#define foo() bar /* { dg-message "previous def" "foo prev def" } */ -#define foo() barr /* { dg-warning "redefined" "foo redefined" } */ +#define foo() bar /* { dg-message "-:previous def" "foo prev def" } */ +#define foo() barr /* { dg-warning "-:redefined" "foo redefined" } */ -#define quux(thud) a thud b /* { dg-message "previous def" "quux prev def" } */ -#define quux(thu) a thud b /* { dg-warning "redefined" "quux redefined" } */ +#define quux(thud) a thud b /* { dg-message "-:previous def" "quux prev def" } */ +#define quux(thu) a thud b /* { dg-warning "-:redefined" "quux redefined" } */ -#define bar(x, y) x+y /* { dg-message "previous def" "bar prev def" } */ -#define bar(x, y) x+x /* { dg-warning "redefined" "bar redefined" } */ +#define bar(x, y) x+y /* { dg-message "-:previous def" "bar prev def" } */ +#define bar(x, y) x+x /* { dg-warning "-:redefined" "bar redefined" } */ -#define bat(x, y) x+y /* { dg-message "previous def" "bat prev def" } */ -#define bat(x, y) x+ y /* { dg-warning "redefined" "bat redefined" } */ +#define bat(x, y) x+y /* { dg-message "-:previous def" "bat prev def" } */ +#define bat(x, y) x+ y /* { dg-warning "-:redefined" "bat redefined" } */ -#define baz(x, y) x+y /* { dg-message "previous def" "baz prev def" } */ -#define baz(x, y) x +y /* { dg-warning "redefined" "baz redefined" } */ +#define baz(x, y) x+y /* { dg-message "-:previous def" "baz prev def" } */ +#define baz(x, y) x +y /* { dg-warning "-:redefined" "baz redefined" } */ -#define f(x, y) "x y" /* { dg-message "previous def" "f prev def" } */ -#define f(x, y) "x y" /* { dg-warning "redefined" "f redefined" } */ +#define f(x, y) "x y" /* { dg-message "-:previous def" "f prev def" } */ +#define f(x, y) "x y" /* { dg-warning "-:redefined" "f redefined" } */ -#define g(x, y) 'x' /* { dg-message "previous def" "g prev def" } */ -#define g(x, y) ' x' /* { dg-warning "redefined" "g redefined" } */ +#define g(x, y) 'x' /* { dg-message "-:previous def" "g prev def" } */ +#define g(x, y) ' x' /* { dg-warning "-:redefined" "g redefined" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/ucnid-11.c b/gcc/testsuite/gcc.dg/cpp/ucnid-11.c index a44a3eaf421..b6956f54454 100644 --- a/gcc/testsuite/gcc.dg/cpp/ucnid-11.c +++ b/gcc/testsuite/gcc.dg/cpp/ucnid-11.c @@ -4,23 +4,23 @@ /* { dg-options "-std=c99 -pedantic-errors" } */ /* Different spelling of UCN in expansion. */ -#define m1 \u00c1 /* { dg-message "previous definition" } */ -#define m1 \u00C1 /* { dg-error "redefined" } */ +#define m1 \u00c1 /* { dg-message "-:previous definition" } */ +#define m1 \u00C1 /* { dg-error "-:redefined" } */ #define m1ok \u00c1 #define m1ok \u00c1 /* Different spelling of UCN in argument name. */ -#define m2(\u00c1) /* { dg-message "previous definition" } */ -#define m2(\u00C1) /* { dg-error "redefined" } */ +#define m2(\u00c1) /* { dg-message "-:previous definition" } */ +#define m2(\u00C1) /* { dg-error "-:redefined" } */ #define m2ok(\u00c1) #define m2ok(\u00c1) /* Same spelling in argument name but different spelling when used in expansion. */ -#define m3(\u00c1) \u00c1 /* { dg-message "previous definition" } */ -#define m3(\u00c1) \u00C1 /* { dg-error "redefined" } */ +#define m3(\u00c1) \u00c1 /* { dg-message "-:previous definition" } */ +#define m3(\u00c1) \u00C1 /* { dg-error "-:redefined" } */ #define m3ok(\u00c1) \u00C1 #define m3ok(\u00c1) \u00C1 diff --git a/gcc/testsuite/gcc.dg/cpp/unc1.c b/gcc/testsuite/gcc.dg/cpp/unc1.c index 18c306fc89e..d8eb1923103 100644 --- a/gcc/testsuite/gcc.dg/cpp/unc1.c +++ b/gcc/testsuite/gcc.dg/cpp/unc1.c @@ -1,7 +1,7 @@ /* Tests for un-terminated conditionals: 1. */ /* { dg-do preprocess } */ -#if 1 /* { dg-error "unterminated" "unterminated #if" } */ +#if 1 /* { dg-error "-:unterminated" "unterminated #if" } */ #ifdef notdef /* { dg-bogus "unterminated" "nested terminated #ifdef" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/unc2.c b/gcc/testsuite/gcc.dg/cpp/unc2.c index 976d2b181ab..faa4b2905b4 100644 --- a/gcc/testsuite/gcc.dg/cpp/unc2.c +++ b/gcc/testsuite/gcc.dg/cpp/unc2.c @@ -1,7 +1,7 @@ /* Tests for unterminated conditionals: 2. */ /* { dg-do preprocess } */ -#ifdef __sparc__ /* { dg-error "unterminated" "unterminated if-elif-elif..." } */ +#ifdef __sparc__ /* { dg-error "-:unterminated" "unterminated if-elif-elif..." } */ sparc #elif defined __powerpc__ ppc diff --git a/gcc/testsuite/gcc.dg/cpp/unc3.c b/gcc/testsuite/gcc.dg/cpp/unc3.c index d5f16f738ac..e20339cf809 100644 --- a/gcc/testsuite/gcc.dg/cpp/unc3.c +++ b/gcc/testsuite/gcc.dg/cpp/unc3.c @@ -1,5 +1,5 @@ /* Tests for unterminated conditionals: 3. */ /* { dg-do preprocess } */ -#if 1 /* { dg-error "#else" "unterminated #else" } */ +#if 1 /* { dg-error "-:#else" "unterminated #else" } */ #else diff --git a/gcc/testsuite/gcc.dg/cpp/unc4.c b/gcc/testsuite/gcc.dg/cpp/unc4.c index 10c49e9d4db..410e2fcda0c 100644 --- a/gcc/testsuite/gcc.dg/cpp/unc4.c +++ b/gcc/testsuite/gcc.dg/cpp/unc4.c @@ -36,4 +36,4 @@ ignored /* dg.exp doesn't read the included files for tags, so we have to do them explicitly here. */ -/* { dg-error "#if" "unc1.c: unterminated #if" { target *-*-* } 4 } */ +/* { dg-error "-:#if" "unc1.c: unterminated #if" { target *-*-* } 4 } */ diff --git a/gcc/testsuite/gcc.dg/cpp/undef2.c b/gcc/testsuite/gcc.dg/cpp/undef2.c index 5614e039b22..189a72dd9c2 100644 --- a/gcc/testsuite/gcc.dg/cpp/undef2.c +++ b/gcc/testsuite/gcc.dg/cpp/undef2.c @@ -3,11 +3,11 @@ /* { dg-do preprocess } */ -#undef __DATE__ /* { dg-warning "undefining" "__DATE__" } */ -#undef __TIME__ /* { dg-warning "undefining" "__TIME__" } */ -#undef __FILE__ /* { dg-warning "undefining" "__FILE__" } */ -#undef __LINE__ /* { dg-warning "undefining" "__LINE__" } */ -#undef __STDC__ /* { dg-warning "undefining" "__STDC__" } */ +#undef __DATE__ /* { dg-warning "-:undefining \"__DATE__\"" } */ +#undef __TIME__ /* { dg-warning "-:undefining \"__TIME__\"" } */ +#undef __FILE__ /* { dg-warning "-:undefining \"__FILE__\"" } */ +#undef __LINE__ /* { dg-warning "undefining \"__LINE__\"" } */ +#undef __STDC__ /* { dg-warning "undefining \"__STDC__\"" } */ /* These should be protected from #undef, but aren't, because they are set with normal #define commands - and on top of that, some diff --git a/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c b/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c index 3e2e57a79bb..ea5ad8170cd 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-redefined-2.c @@ -6,13 +6,13 @@ // { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } .-1 } #endif -#define __TIME__ "X" // { dg-error "\"__TIME__\" redefined .-Werror=builtin-macro-redefined." } +#define __TIME__ "X" // { dg-error "-:\"__TIME__\" redefined .-Werror=builtin-macro-redefined." } #define __TIME__ "Y" // { dg-bogus "-Wbuiltin-macro-redefined" } - // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 } - // { dg-message "previous definition" "previous-1" { target *-*-* } 9 } + // { dg-warning "-:\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 } + // { dg-message "-:previous definition" "previous-1" { target *-*-* } 9 } #define X "X" #define X "Y" // { dg-bogus "-Wbuiltin-macro-redefined" } - // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 } - // { dg-message "previous definition" "previous-2" { target *-*-* } 15 } + // { dg-warning "-:\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 } + // { dg-message "-:previous definition" "previous-2" { target *-*-* } 15 } diff --git a/gcc/testsuite/gcc.dg/cpp/warn-redefined.c b/gcc/testsuite/gcc.dg/cpp/warn-redefined.c index c562d072e40..e0446689706 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-redefined.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-redefined.c @@ -6,13 +6,13 @@ // { dg-bogus "__TIME__ builtin is not defined" "no-time" { target *-*-* } .-1 } #endif -#define __TIME__ "X" // { dg-warning "\"__TIME__\" redefined .-Wbuiltin-macro-redefined." } +#define __TIME__ "X" // { dg-warning "-:\"__TIME__\" redefined .-Wbuiltin-macro-redefined." } #define __TIME__ "Y" // { dg-bogus "-Wbuiltin-macro-redefined" } - // { dg-warning "\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 } - // { dg-message "previous definition" "previous-1" { target *-*-* } 9 } + // { dg-warning "-:\"__TIME__\" redefined" "not-builtin-1" { target *-*-* } .-1 } + // { dg-message "-:previous definition" "previous-1" { target *-*-* } 9 } #define X "X" #define X "Y" // { dg-bogus "-Wbuiltin-macro-redefined" } - // { dg-warning "\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 } - // { dg-message "previous definition" "previous-2" { target *-*-* } 15 } + // { dg-warning "-:\"X\" redefined" "not-builtin-2" { target *-*-* } .-1 } + // { dg-message "-:previous definition" "previous-2" { target *-*-* } 15 } diff --git a/gcc/testsuite/gcc.dg/cpp/warn-unused-macros-2.c b/gcc/testsuite/gcc.dg/cpp/warn-unused-macros-2.c index d7fe145c8cc..f82d67fe9c2 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-unused-macros-2.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-unused-macros-2.c @@ -1,4 +1,4 @@ // { dg-do preprocess } // { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=unused-macros" } /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */ -#define X X // { dg-error "macro \"X\" is not used .-Werror=unused-macros." } +#define X X // { dg-error "-:macro \"X\" is not used .-Werror=unused-macros." } diff --git a/gcc/testsuite/gcc.dg/cpp/warn-unused-macros.c b/gcc/testsuite/gcc.dg/cpp/warn-unused-macros.c index e1ce94eeee6..b18f506b13b 100644 --- a/gcc/testsuite/gcc.dg/cpp/warn-unused-macros.c +++ b/gcc/testsuite/gcc.dg/cpp/warn-unused-macros.c @@ -1,4 +1,4 @@ // { dg-do preprocess } // { dg-options "-std=gnu99 -fdiagnostics-show-option -Wunused-macros" } -#define X X // { dg-warning "macro \"X\" is not used .-Wunused-macros." } +#define X X // { dg-warning "-:macro \"X\" is not used .-Wunused-macros." } |