Commit 6e40af1a by Mark Mitchell Committed by Mark Mitchell

re PR c++/16717 ([unit-at-a-time] __attribute__((constructor)) broken in C++)

	PR c++/16717
	* g++.dg/ext/construct1.C: New test.

From-SVN: r85844
parent 46e34f96
2004-08-11 Mark Mitchell <mark@codesourcery.com>
PR c++/16717
* g++.dg/ext/construct1.C: New test.
2004-08-11 Mark Mitchell <mark@codesourcery.com>
PR c++/16853
* g++.dg/init/ptrmem1.C: New test.
......
// PR c++/16717
// { dg-options "-O2" }
int i;
void hello (void) __attribute__ ((constructor));
void hello (void) { i = 1; }
int main (void) {
if (i != 1)
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment