Commit 9559fbac by Rainer Orth Committed by Rainer Orth

Require init_priority support for g++.dg/ext/attr-constructor1.C

	* g++.dg/ext/attr-constructor1.C: Require init_priority support.

From-SVN: r233713
parent e6861a99
2016-02-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.dg/ext/attr-constructor1.C: Require init_priority support.
2016-02-25 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/69896
......
// 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment