diff options
Diffstat (limited to 'test/CodeGen/PR3709-int-to-pointer-sign.c')
-rw-r--r-- | test/CodeGen/PR3709-int-to-pointer-sign.c | 5 |
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;} + |