aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2001-04-10 15:22:06 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-04-10 15:22:06 -0700
commit45b6f9c99d95770b9e03cb89f2fa53d068b5397c (patch)
tree93e4784b4db7a5c611f696f82b2b9d4be3d42654
parentc57718d3fe66bc722dd00662b10455be50b7b143 (diff)
downloadgcc-45b6f9c99d95770b9e03cb89f2fa53d068b5397c.zip
gcc-45b6f9c99d95770b9e03cb89f2fa53d068b5397c.tar.gz
gcc-45b6f9c99d95770b9e03cb89f2fa53d068b5397c.tar.bz2
New.
[[Split portion of a mixed commit.]] From-SVN: r41230.2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/array5.C10
1 files changed, 10 insertions, 0 deletions
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
index 0000000..9ac745c
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/array5.C
@@ -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;
+}