Check init_priority in g++.dg/cpp0x/gen-attrs-67.C
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 3 Oct 2019 13:23:52 +0000 (13:23 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 3 Oct 2019 13:23:52 +0000 (13:23 +0000)
gcc/testsuite:
* g++.dg/cpp0x/gen-attrs-67.C: Expect constructor priorities error
on any !init_priority target.

From-SVN: r276510

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C

index 9acbf0e..d4852d3 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/cpp0x/gen-attrs-67.C: Expect constructor priorities error
+       on any !init_priority target.
+
 2019-10-03  Thomas Koenig <tkoenig@gcc.gnu.org>
 
        PR fortran/84487
index 5d151cc..3dd3a1f 100644 (file)
@@ -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 } } }