https://gcc.gnu.org/g:f650cfccc61f0352f9c3a0993457e1cb7845bc7a
commit r13-8564-gf650cfccc61f0352f9c3a0993457e1cb7845bc7a Author: Francois-Xavier Coudert <fxcoud...@gcc.gnu.org> Date: Sat Aug 19 22:37:33 2023 +0200 Testsuite: fix contructor priority test 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) Diff: --- gcc/testsuite/g++.dg/special/initpri3.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/special/initpri3.C b/gcc/testsuite/g++.dg/special/initpri3.C index 3d745a42a6a..63ed3208228 100644 --- a/gcc/testsuite/g++.dg/special/initpri3.C +++ b/gcc/testsuite/g++.dg/special/initpri3.C @@ -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 }