public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] testsuite: Require init_priority target support in a test.
@ 2022-06-20 15:17 Iain Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2022-06-20 15:17 UTC (permalink / raw)
  To: gcc-patches

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.

tested on x86_64 darwin / linux, pushed to master, thanks
Iain

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

gcc/testsuite/ChangeLog:

	* c-c++-common/attr-cdtor-1.c: Requite init_priority support.
---
 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" } */
-- 
2.24.3 (Apple Git-128)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-20 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 15:17 [pushed] testsuite: Require init_priority target support in a test Iain Sandoe

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).