From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id EB8D13858C2C; Mon, 20 Jun 2022 15:14:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB8D13858C2C MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1175] testsuite: Require init_priority target support in a test. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/master X-Git-Oldrev: 713f2fd923442b1be620a44240ddf786ae0ab476 X-Git-Newrev: ab5d82c029254c23614c5c0ef616eedd5c19df35 Message-Id: <20220620151447.EB8D13858C2C@sourceware.org> Date: Mon, 20 Jun 2022 15:14:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2022 15:14:48 -0000 https://gcc.gnu.org/g:ab5d82c029254c23614c5c0ef616eedd5c19df35 commit r13-1175-gab5d82c029254c23614c5c0ef616eedd5c19df35 Author: Iain Sandoe Date: Sun Jun 19 10:12:47 2022 +0100 testsuite: Require init_priority target support in a test. The attr-cdtor-1 test fails on targets without init priority since the diagnostic emitted concerns the absence of support. Disable the test on such targets. Signed-off-by: Iain Sandoe gcc/testsuite/ChangeLog: * c-c++-common/attr-cdtor-1.c: Requite init_priority support. Diff: --- gcc/testsuite/c-c++-common/attr-cdtor-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/c-c++-common/attr-cdtor-1.c b/gcc/testsuite/c-c++-common/attr-cdtor-1.c index ea61336c404..a0d069b014d 100644 --- a/gcc/testsuite/c-c++-common/attr-cdtor-1.c +++ b/gcc/testsuite/c-c++-common/attr-cdtor-1.c @@ -1,5 +1,5 @@ /* PR c/90658 */ -/* { dg-do compile } */ +/* { dg-do compile { target init_priority } } */ void f (); void g1 () __attribute__ ((constructor(f))); /* { dg-error "priorities must be integers" } */