New test case.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 25 Apr 2000 06:01:42 +0000 (06:01 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 25 Apr 2000 06:01:42 +0000 (06:01 +0000)
From-SVN: r33401

gcc/testsuite/g++.old-deja/g++.martin/crash1.C [new file with mode: 0644]

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 (file)
index 0000000..dd165b6
--- /dev/null
@@ -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();
+}