diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/static9.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/static9.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/static9.C b/gcc/testsuite/g++.old-deja/g++.other/static9.C new file mode 100644 index 000000000..c37128820 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/static9.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// Origin: Ulrich Drepper <drepper@cygnus.com> + +struct st +{ + int a, b, c, d; +}; + +void g () +{ + static const st i = { 0,1,2,3 }; +} + +void h () +{ + static const st i = { 0,1,2,3 }; +} |