From: Francois-Xavier Coudert Date: Sat, 19 Aug 2023 20:37:33 +0000 (+0200) Subject: Testsuite: fix contructor priority test X-Git-Tag: basepoints/gcc-15~6500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f636d979530c8a649262dbd44914bdfb6f7290;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/g++.dg/special/initpri3.C b/gcc/testsuite/g++.dg/special/initpri3.C index 3d745a42a6a4..63ed3208228d 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 }