From b83c613cf1cf84f421c5a9cf8ca149205f7c7420 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 22 May 2003 20:43:06 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6298 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/C++Frontend/2003-05-22-VarSizeArray.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/C++Frontend/2003-05-22-VarSizeArray.c diff --git a/test/C++Frontend/2003-05-22-VarSizeArray.c b/test/C++Frontend/2003-05-22-VarSizeArray.c new file mode 100644 index 00000000000..78e15dfc3be --- /dev/null +++ b/test/C++Frontend/2003-05-22-VarSizeArray.c @@ -0,0 +1,11 @@ + +int test(int Num) { + int Arr[Num]; + Arr[2] = 0; + return Arr[2]; +} + +int main() { + printf("%d\n", test(4)); + return 0; +}