summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PR3709-int-to-pointer-sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PR3709-int-to-pointer-sign.c')
-rw-r--r--test/CodeGen/PR3709-int-to-pointer-sign.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/PR3709-int-to-pointer-sign.c b/test/CodeGen/PR3709-int-to-pointer-sign.c
new file mode 100644
index 0000000..24c42f6
--- /dev/null
+++ b/test/CodeGen/PR3709-int-to-pointer-sign.c
@@ -0,0 +1,5 @@
+// RUN: clang-cc -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1"
+
+// PR3709
+long long a() { return (long long)(int*)-1;}
+
OpenPOWER on IntegriCloud