From 7d3af72b0abf82c5371aa8edb4dd7071e385fd3f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sun, 29 Oct 2000 02:30:21 +0000 Subject: [PATCH] New test From-SVN: r37113 --- gcc/testsuite/g++.old-deja/g++.other/static15.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/static15.C 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 +// Special g++ Option: -fdata-sections + +void f() +{ + static int ctors[3] = { 0, 0, 0 }; + + ctors[2] = 7; +} + +int main () +{ + f (); +} -- 2.30.2