]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Require init_priority target support in a test.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 19 Jun 2022 09:12:47 +0000 (10:12 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 20 Jun 2022 15:14:22 +0000 (16:14 +0100)
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.

gcc/testsuite/c-c++-common/attr-cdtor-1.c

index ea61336c404c175d8f367764e2832a9d4bbceffd..a0d069b014dc15a1b02b5d1442f7ee467e29d9e8 100644 (file)
@@ -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" } */