aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-14 21:08:04 +0000
committerChris Lattner <sabre@nondot.org>2003-05-14 21:08:04 +0000
commit6200a577c7ac8c49ba1dd7b77555ca556c56c249 (patch)
tree91c76c9f6276ee9f66cfe55c742f0bdd2acf61a3
parent1b2bde96510c7e557405a488db437797908b0b47 (diff)
New testcase that breaks CFE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6217 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/C++Frontend/2003-05-14-array-init.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-05-14-array-init.cpp b/test/C++Frontend/2003-05-14-array-init.cpp
new file mode 100644
index 0000000000..56a7f28257
--- /dev/null
+++ b/test/C++Frontend/2003-05-14-array-init.cpp
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+extern int table[];
+
+int main() {
+ printf("%d %d %d %d\n", table[0], table[1], table[2], table[3]);
+ return table[1];
+}
+
+int table[] = { 1, 0, 3, 4 };