commit | 3b8f5c6a2bef328a6c7e827b72162c0536385f0b | [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 | 69ea78529b2d92b797056464095595fa5d05473c [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; +} +