From d53b69d9c2dace1173f4ad50a242d6cfffcad403 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 24 Apr 2007 19:24:39 +0000 Subject: [PATCH] New test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36400 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-04-24-bit-not-expr.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CFrontend/2007-04-24-bit-not-expr.ll diff --git a/test/CFrontend/2007-04-24-bit-not-expr.ll b/test/CFrontend/2007-04-24-bit-not-expr.ll new file mode 100644 index 00000000000..1c27f181c0e --- /dev/null +++ b/test/CFrontend/2007-04-24-bit-not-expr.ll @@ -0,0 +1,7 @@ +// PR 1346 +// RUN: %llvmgcc -c %s -o /dev/null +extern bar(void *); + +void f(void *cd) { + bar(((void *)((unsigned long)(cd) ^ -1))); +}