aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@gcc.gnu.org>2000-04-25 06:01:42 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>2000-04-25 06:01:42 +0000
commitd872905426f4aee0ed0625abaa59524bf6330045 (patch)
tree34e93d83f4bd3e82194b36ecc3976ac8e709459c /gcc
parentf2760b279a4d14e024a9372ade10c49a34524689 (diff)
downloadgcc-d872905426f4aee0ed0625abaa59524bf6330045.zip
gcc-d872905426f4aee0ed0625abaa59524bf6330045.tar.gz
gcc-d872905426f4aee0ed0625abaa59524bf6330045.tar.bz2
New test case.
From-SVN: r33401
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.martin/crash1.C15
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 0000000..dd165b6
--- /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();
+}