diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2022-06-19 10:12:47 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2022-06-20 16:14:22 +0100 |
commit | ab5d82c029254c23614c5c0ef616eedd5c19df35 (patch) | |
tree | 023966cfee56272a4576ff2e776858a01b074540 | |
parent | 713f2fd923442b1be620a44240ddf786ae0ab476 (diff) | |
download | gcc-ab5d82c029254c23614c5c0ef616eedd5c19df35.zip gcc-ab5d82c029254c23614c5c0ef616eedd5c19df35.tar.gz gcc-ab5d82c029254c23614c5c0ef616eedd5c19df35.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/c-c++-common/attr-cdtor-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/attr-cdtor-1.c b/gcc/testsuite/c-c++-common/attr-cdtor-1.c index ea61336..a0d069b 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" } */ |