[C++,testcase] PR 36107

Submitted by Paolo Carlini on Oct. 11, 2012, 2:39 p.m.

Details

Message ID 5076DA20.7050900@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Oct. 11, 2012, 2:39 p.m.
Hi,

testcase added to testsuite, PR closed as fixed.

Thanks,
Paolo.

/////////////////////
2012-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/36107
	* g++.dg/ext/weak5.C: New.

Patch hide | download patch | download mbox

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;
+}