summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pointer-to-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/pointer-to-int.c')
-rw-r--r--clang/test/CodeGen/pointer-to-int.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pointer-to-int.c b/clang/test/CodeGen/pointer-to-int.c
new file mode 100644
index 0000000..30a6db2
--- /dev/null
+++ b/clang/test/CodeGen/pointer-to-int.c
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+
+int test(void* i)
+{
+ return (int)i;
+}
+
+// rdar://6093986
+int test2(void) {
+ float x[2];
+ return x;
+}
+