diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-22 20:43:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-22 20:43:06 +0000 |
commit | b83c613cf1cf84f421c5a9cf8ca149205f7c7420 (patch) | |
tree | 1f64aad732eae628d330526b3617731ab5a45978 | |
parent | 32a32840c164a1914965ef935379b3305f45c628 (diff) |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6298 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/2003-05-22-VarSizeArray.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 0000000000..78e15dfc3b --- /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; +} |