diff options
author | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-25 06:01:42 +0000 |
---|---|---|
committer | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-25 06:01:42 +0000 |
commit | 33cb84b9ce1269581315acce3c3f1ded4cd12425 (patch) | |
tree | 34e93d83f4bd3e82194b36ecc3976ac8e709459c /gcc/testsuite | |
parent | c3b8160a4d3f06ac1e13db5de100dfe66da7b9ec (diff) | |
download | gcc-33cb84b9ce1269581315acce3c3f1ded4cd12425.tar.gz |
New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.martin/crash1.C | 15 |
1 files changed, 15 insertions, 0 deletions
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(); +} |