From ec7b1298a04e1109a8d565c4b509bb15842ba5b9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 2 Aug 2024 06:37:04 +0100 Subject: [PATCH] testsuite: fix dg-message typos gcc/testsuite/ChangeLog: * g++.dg/diagnostic/unclosed-extern-c.C: Fix 'dg-message' typo. * g++.dg/warn/Wno-attributes-1.C: Ditto. --- gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C | 2 +- gcc/testsuite/g++.dg/warn/Wno-attributes-1.C | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C b/gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C index 4dad8a21c16..a5ca8de3729 100644 --- a/gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C +++ b/gcc/testsuite/g++.dg/diagnostic/unclosed-extern-c.C @@ -9,5 +9,5 @@ void bar (void); // { dg-message "1: 'extern .C.' linkage started here" "" { target *-*-* } open_extern_c } void test (void); -// { message "12: to match this '.'" "" { target *-*-* } open_extern_c } +// { dg-message "12: to match this '.'" "" { target *-*-* } open_extern_c } /* { dg-error "18:expected '.' at end of input" "" { target *-*-* } .-2 } */ diff --git a/gcc/testsuite/g++.dg/warn/Wno-attributes-1.C b/gcc/testsuite/g++.dg/warn/Wno-attributes-1.C index 863ca5c4892..9ac61b4d65c 100644 --- a/gcc/testsuite/g++.dg/warn/Wno-attributes-1.C +++ b/gcc/testsuite/g++.dg/warn/Wno-attributes-1.C @@ -36,11 +36,11 @@ foo () class S { [[foo::bar]] friend int bar (S &); // { dg-warning "attribute ignored" } - // { dsg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } + // { dg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } [[bar::foo, foo::bar, baz::qux]] friend int baz (S &); // { dg-warning "attribute ignored" } - // { dsg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } + // { dg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } [[bar::foo, bar::bar, baz::qux]] friend int qux (S &); // { dg-warning "attribute ignored" } - // { dsg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } + // { dg-message "an attribute that appertains to a friend declaration that is not a definition is ignored" "" { target *-*-* } .-1 } public: int s; }; -- 2.47.2