aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 };