New.
authorRichard Henderson <rth@gcc.gnu.org>
Tue, 10 Apr 2001 22:22:06 +0000 (15:22 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 10 Apr 2001 22:22:06 +0000 (15:22 -0700)
[[Split portion of a mixed commit.]]

From-SVN: r41230.2

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

diff --git a/gcc/testsuite/g++.old-deja/g++.other/array5.C b/gcc/testsuite/g++.old-deja/g++.other/array5.C
new file mode 100644 (file)
index 0000000..9ac745c
--- /dev/null
@@ -0,0 +1,10 @@
+// Build don't link:
+// We tried to create a temporary of unknown size and crashed.
+
+extern int a1[];
+extern int a2[];
+int foo(int p)
+{
+  int x = (p ? a1 : a2)[1];
+  return x;
+}