PR c++/59281
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jan 2016 20:26:26 +0000 (20:26 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jan 2016 20:26:26 +0000 (20:26 +0000)
* g++.dg/ext/attr-constructor1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232704 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.dg/ext/attr-constructor1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/attr-constructor1.C b/gcc/testsuite/g++.dg/ext/attr-constructor1.C
new file mode 100644 (file)
index 0000000..ed522d3
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/59281
+// { dg-do compile { target c++11 } }
+
+enum class E : int { prio = 666 };
+void f (int) __attribute__((constructor(E::prio))); // { dg-error "integer" }