summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp
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
commit515c189dd6b276cc59fb5cb47c32880ce7d50315 (patch)
tree1d913d20011d17f84a3697689a29b6fc30201ce8 /llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp
parent52b807bbee86db78e58c8c9ae0bc8d0cbcc555f8 (diff)
downloadbcm5719-llvm-515c189dd6b276cc59fb5cb47c32880ce7d50315.tar.gz
bcm5719-llvm-515c189dd6b276cc59fb5cb47c32880ce7d50315.zip
New testcase that breaks CFE
llvm-svn: 6217
Diffstat (limited to 'llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp')
-rw-r--r--llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp b/llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp
new file mode 100644
index 00000000000..56a7f282575
--- /dev/null
+++ b/llvm/test/Regression/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 };
OpenPOWER on IntegriCloud