From patchwork Thu Oct 11 14:39:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 36107 Date: Thu, 11 Oct 2012 04:39:28 -0000 From: Paolo Carlini X-Patchwork-Id: 190920 Message-Id: <5076DA20.7050900@oracle.com> To: "gcc-patches@gcc.gnu.org" Hi, testcase added to testsuite, PR closed as fixed. Thanks, Paolo. ///////////////////// 2012-10-11 Paolo Carlini 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; +}