diff options
Diffstat (limited to 'clang/test/CodeGen/pointer-to-int.c')
-rw-r--r-- | clang/test/CodeGen/pointer-to-int.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/CodeGen/pointer-to-int.c b/clang/test/CodeGen/pointer-to-int.c index 7599e0d4abe..a3eaf91bc16 100644 --- a/clang/test/CodeGen/pointer-to-int.c +++ b/clang/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; +} + |