New testcase that breaks CFE
authorChris Lattner <sabre@nondot.org>
Wed, 14 May 2003 21:08:04 +0000 (21:08 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 May 2003 21:08:04 +0000 (21:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6217 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-05-14-array-init.cpp [new file with mode: 0644]

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