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

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" } */


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

only message in thread, other threads:[~2022-06-20 15:14 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:14 [gcc r13-1175] testsuite: Require init_priority target support in a test Iain D 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).