public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, c++] Require init_priority support for g++.dg/ext/attr-constructor1.C
@ 2016-02-25 12:50 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2016-02-25 12:50 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jason Merrill

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: testsuite-c++-attr-constructor-1-init_priority.patch --]
[-- Type: text/x-patch, Size: 594 bytes --]

# 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" }

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

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

only message in thread, other threads:[~2016-02-25 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 12:50 [testsuite, c++] Require init_priority support for g++.dg/ext/attr-constructor1.C Rainer Orth

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).