public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1175] testsuite: Require init_priority target support in a test. Date: Mon, 20 Jun 2022 15:14:47 +0000 (GMT) [thread overview] Message-ID: <20220620151447.EB8D13858C2C@sourceware.org> (raw) https://gcc.gnu.org/g:ab5d82c029254c23614c5c0ef616eedd5c19df35 commit r13-1175-gab5d82c029254c23614c5c0ef616eedd5c19df35 Author: Iain Sandoe <iain@sandoe.co.uk> 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 <iain@sandoe.co.uk> 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" } */
reply other threads:[~2022-06-20 15:14 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220620151447.EB8D13858C2C@sourceware.org \ --to=iains@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).