diff --git a/gcc/testsuite/g++.old-deja/g++.martin/crash1.C b/gcc/testsuite/g++.old-deja/g++.martin/crash1.C new file mode 100644 index 00000000000..dd165b6bfda --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.martin/crash1.C @@ -0,0 +1,15 @@ +// Build don't link: +int i = 4; +struct S{ + char c[i]; // ERROR - size not constant + int h; + int foo(){ + return h; + } +}; + +int main() +{ + S x; + int i = x.foo(); +}