Hi,
testcase added to testsuite, PR closed as fixed.
Thanks,
Paolo.
/////////////////////
2012-10-11 Paolo Carlini <[email protected]>
PR c++/36107
* g++.dg/ext/weak5.C: New.
Index: g++.dg/ext/weak5.C
===================================================================
--- g++.dg/ext/weak5.C (revision 0)
+++ g++.dg/ext/weak5.C (working copy)
@@ -0,0 +1,12 @@
+// PR c++/36107
+// { dg-do assemble }
+// { dg-require-weak "" }
+
+class Test {
+ public:
+ Test() __attribute__((weak));
+};
+
+void test() {
+ Test test;
+}