]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite: fix contructor priority test
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 19 Aug 2023 20:37:33 +0000 (22:37 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 3 Sep 2023 13:35:17 +0000 (15:35 +0200)
Fix the expected warning wording for targets without constructor
priority, like Darwin, making the test pass.

gcc/testsuite/ChangeLog:

PR testsuite/111066
* g++.dg/special/initpri3.C: Fix wording.

gcc/testsuite/g++.dg/special/initpri3.C

index 3d745a42a6a4561dc7b4ae00915c3dc825fe1d81..63ed3208228dcf606618c840ad9bfe0db0715e9c 100644 (file)
@@ -7,4 +7,4 @@
 #endif
 
 struct A { A(); } a __attribute__((init_priority(500)));
-// { dg-warning "attribute directive ignored" "" { target { ! init_priority } } .-1 }
+// { dg-warning "attribute ignored" "" { target { ! init_priority } } .-1 }