]> 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)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 2 Apr 2024 18:47:27 +0000 (19:47 +0100)
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.

(cherry picked from commit 78f636d979530c8a649262dbd44914bdfb6f7290)

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 }