* g++.dg/ext/construct1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85844
138bc75d-0d04-0410-961f-
82ee72b054a4
2004-08-11 Mark Mitchell <mark@codesourcery.com>
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++/16853
* g++.dg/init/ptrmem1.C: New test.
--- /dev/null
+// 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;
+}