From 6200a577c7ac8c49ba1dd7b77555ca556c56c249 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 May 2003 21:08:04 +0000 Subject: [PATCH] New testcase that breaks CFE 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/C++Frontend/2003-05-14-array-init.cpp 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 00000000000..56a7f282575 --- /dev/null +++ b/test/C++Frontend/2003-05-14-array-init.cpp @@ -0,0 +1,10 @@ +#include + +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 };