From 45b6f9c99d95770b9e03cb89f2fa53d068b5397c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 10 Apr 2001 15:22:06 -0700 Subject: [PATCH] New. [[Split portion of a mixed commit.]] From-SVN: r41230.2 --- gcc/testsuite/g++.old-deja/g++.other/array5.C | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/array5.C 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 00000000000..9ac745c0dc4 --- /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; +} -- 2.30.2