This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite, c++] Require init_priority support for g++.dg/ext/attr-constructor1.C
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jason Merrill <jason at redhat dot com>
- Date: Thu, 25 Feb 2016 13:50:23 +0100
- Subject: [testsuite, c++] Require init_priority support for g++.dg/ext/attr-constructor1.C
- Authentication-results: sourceware.org; auth=none
The new g++.dg/ext/attr-constructor1.C FAILs on Solaris 10 and 11:
FAIL: g++.dg/ext/attr-constructor1.C -std=c++11 (test for errors, line 5)
FAIL: g++.dg/ext/attr-constructor1.C -std=c++11 (test for excess errors)
FAIL: g++.dg/ext/attr-constructor1.C -std=c++14 (test for errors, line 5)
FAIL: g++.dg/ext/attr-constructor1.C -std=c++14 (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/ext/attr-constructor1.C:5:50: error: constructor priorities are not supported
Fixed as follows, tested with the appropriate runtest invocation on
i386-pc-solaris2.11 (which lacks constructor priority support),
i386-pc-solaris2.12 (which has it) and x86_64-pc-linux-gnu, installed on
mainline.
Rainer
2016-02-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.dg/ext/attr-constructor1.C: Require init_priority support.
# HG changeset patch
# Parent 91ba3e75fb07900f8f953f4387f6a0f12031d1a6
Require init_priority support for g++.dg/ext/attr-constructor1.C
diff --git a/gcc/testsuite/g++.dg/ext/attr-constructor1.C b/gcc/testsuite/g++.dg/ext/attr-constructor1.C
--- a/gcc/testsuite/g++.dg/ext/attr-constructor1.C
+++ b/gcc/testsuite/g++.dg/ext/attr-constructor1.C
@@ -1,5 +1,5 @@
// PR c++/59281
-// { dg-do compile { target c++11 } }
+// { dg-do compile { target { c++11 && init_priority } } }
enum class E : int { prio = 666 };
void f (int) __attribute__((constructor(E::prio))); // { dg-error "integer" }
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University