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