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