New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 29 Oct 2000 02:30:21 +0000 (02:30 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 29 Oct 2000 02:30:21 +0000 (02:30 +0000)
From-SVN: r37113

gcc/testsuite/g++.old-deja/g++.other/static15.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.other/static15.C b/gcc/testsuite/g++.old-deja/g++.other/static15.C
new file mode 100644 (file)
index 0000000..2c978a4
--- /dev/null
@@ -0,0 +1,14 @@
+// Origin: Mark Mitchell <mark@codesourcery.com>
+// Special g++ Option: -fdata-sections
+
+void f()
+{
+  static int ctors[3] = { 0, 0, 0 };
+  
+  ctors[2] = 7;
+}
+
+int main ()
+{
+  f ();
+}