commit | f31627f676374812d0355d7e34fd2e940b400757 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jul 23 06:31:27 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jul 23 06:31:27 2008 +0000 |
tree | 4a6013b085d83f98b1310f28d4558cc8d1a69e76 | |
parent | 395aaf20d6e1ab04741562dc6b7d47164bcbd87e [diff] [blame] |
Fix a codegen crash on: int foo(void) { float x[2]; return x; } rdar://6093986 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53946 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/pointer-to-int.c b/test/CodeGen/pointer-to-int.c index 7599e0d..a3eaf91 100644 --- a/test/CodeGen/pointer-to-int.c +++ b/test/CodeGen/pointer-to-int.c
@@ -1,6 +1,13 @@ -// RUN: clang -emit-llvm %s +// RUN: clang -emit-llvm %s -o - int test(void* i) { return (int)i; } + +// rdar://6093986 +int test2(void) { + float x[2]; + return x; +} +