Patchwork [C++,testcase] PR 36107

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 11, 2012, 2:39 p.m.
Message ID <5076DA20.7050900@oracle.com>
Download mbox | patch
Permalink /patch/190920/
State New
Headers show

Comments

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

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