]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fix dg-message typos
authorSam James <sam@gentoo.org>
Fri, 2 Aug 2024 05:37:04 +0000 (06:37 +0100)
committerSam James <sam@gentoo.org>
Thu, 27 Mar 2025 00:42:59 +0000 (00:42 +0000)
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
gcc/testsuite/g++.dg/warn/Wno-attributes-1.C

index 4dad8a21c166a557afaf354476416a43a3ba4df8..a5ca8de372937ab56b9918d9323317dc4e954850 100644 (file)
@@ -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 } */
index 863ca5c4892c7be0d095b06db0ca0c9f8e566efa..9ac61b4d65cc149047c4ddd01d0bb53006f7892f 100644 (file)
@@ -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;
 };