re PR c++/36107 (weak constructor produces invalid asm)

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

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

From-SVN: r192361
This commit is contained in:
Paolo Carlini 2012-10-11 14:37:44 +00:00 committed by Paolo Carlini
parent 5172408967
commit 2ef3fcf7cb
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/36107
* g++.dg/ext/weak5.C: New.
2012-10-11 Marc Glisse <marc.glisse@inria.fr>
PR testsuite/54868

View File

@ -0,0 +1,12 @@
// PR c++/36107
// { dg-do assemble }
// { dg-require-weak "" }
class Test {
public:
Test() __attribute__((weak));
};
void test() {
Test test;
}