aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-10-29 02:30:21 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-10-29 02:30:21 +0000
commit7d3af72b0abf82c5371aa8edb4dd7071e385fd3f (patch)
tree9b1b640341965f03f02e2e0ff9ba86b7fc596278 /gcc
parent2c21b2473c74b876e97469cf4a60abcc48739ae6 (diff)
downloadgcc-7d3af72b0abf82c5371aa8edb4dd7071e385fd3f.zip
gcc-7d3af72b0abf82c5371aa8edb4dd7071e385fd3f.tar.gz
gcc-7d3af72b0abf82c5371aa8edb4dd7071e385fd3f.tar.bz2
New test
From-SVN: r37113
Diffstat (limited to 'gcc')
-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 0000000..2c978a4
--- /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 ();
+}