From a164d19acb50f67c2b39ab394f8c8e4b6ea9114b Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 3 Oct 2019 13:23:52 +0000 Subject: [PATCH] Check init_priority in g++.dg/cpp0x/gen-attrs-67.C gcc/testsuite: * g++.dg/cpp0x/gen-attrs-67.C: Expect constructor priorities error on any !init_priority target. From-SVN: r276510 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9acbf0e8eb4..d4852d37c3f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-03 Rainer Orth + + * g++.dg/cpp0x/gen-attrs-67.C: Expect constructor priorities error + on any !init_priority target. + 2019-10-03 Thomas Koenig PR fortran/84487 diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C index 5d151cc1bdc..3dd3a1fdc7e 100644 --- a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C @@ -8,4 +8,4 @@ [[nodiscard()]] int f4(); // { dg-error ".nodiscard. attribute does not take any arguments" } [[gnu::noinline()]] int f5(); // { dg-error ".noinline. attribute does not take any arguments" } [[gnu::constructor]] int f6(); -[[gnu::constructor(101)]] int f7(); // { dg-error "constructor priorities are not supported" "" { target *-*-darwin* } } +[[gnu::constructor(101)]] int f7(); // { dg-error "constructor priorities are not supported" "" { target { ! init_priority } } } -- 2.30.2