diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/array2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/array2.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/array2.C b/gcc/testsuite/g++.old-deja/g++.other/array2.C new file mode 100644 index 000000000..5c1b66577 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/array2.C @@ -0,0 +1,19 @@ +// { dg-do run } +int i; + +struct S { + S () { + ++i; + } + + S (int) { + } +}; + +int main() +{ + S s[3][3] = { 2 }; + + if (i != 8) + return 1; +} |