diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-29 02:30:21 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-29 02:30:21 +0000 |
| commit | 7f0bd1706ed4c4f6808980eb67e17c6fee2f7850 (patch) | |
| tree | 9b1b640341965f03f02e2e0ff9ba86b7fc596278 | |
| parent | 2a4729697d2fedb05a49e38d38daf18dc79f8f6b (diff) | |
| download | ppe42-gcc-7f0bd1706ed4c4f6808980eb67e17c6fee2f7850.tar.gz ppe42-gcc-7f0bd1706ed4c4f6808980eb67e17c6fee2f7850.zip | |
New test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37113 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/static15.C | 14 |
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 (); +} |

