From d872905426f4aee0ed0625abaa59524bf6330045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 25 Apr 2000 06:01:42 +0000 Subject: [PATCH] New test case. From-SVN: r33401 --- gcc/testsuite/g++.old-deja/g++.martin/crash1.C | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.martin/crash1.C 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(); +}