This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite, c++] Require init_priority support for g++.dg/ext/attr-constructor1.C


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]