summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/static15.C14
1 files changed, 14 insertions, 0 deletions
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
index 00000000000..2c978a486d4
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/static15.C
@@ -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 ();
+}
OpenPOWER on IntegriCloud