summaryrefslogtreecommitdiff
path: root/test/CodeGen/pointer-to-int.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-23 06:31:27 +0000
committerChris Lattner <sabre@nondot.org>2008-07-23 06:31:27 +0000
commitf31627f676374812d0355d7e34fd2e940b400757 (patch)
tree4a6013b085d83f98b1310f28d4558cc8d1a69e76 /test/CodeGen/pointer-to-int.c
parent395aaf20d6e1ab04741562dc6b7d47164bcbd87e (diff)
downloadclang-f31627f676374812d0355d7e34fd2e940b400757.tar.gz
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
Diffstat (limited to 'test/CodeGen/pointer-to-int.c')
-rw-r--r--test/CodeGen/pointer-to-int.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGen/pointer-to-int.c b/test/CodeGen/pointer-to-int.c
index 7599e0d4ab..a3eaf91bc1 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;
+}
+