aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-24 19:24:39 +0000
committerDevang Patel <dpatel@apple.com>2007-04-24 19:24:39 +0000
commitd53b69d9c2dace1173f4ad50a242d6cfffcad403 (patch)
tree84bec8e5a9d710f4bb7895c0e616f68546c50985
parent1f7a9bc982aaad336963dce582c0ad82d5076274 (diff)
downloadexternal_llvm-d53b69d9c2dace1173f4ad50a242d6cfffcad403.zip
external_llvm-d53b69d9c2dace1173f4ad50a242d6cfffcad403.tar.gz
external_llvm-d53b69d9c2dace1173f4ad50a242d6cfffcad403.tar.bz2
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36400 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-04-24-bit-not-expr.ll7
1 files changed, 7 insertions, 0 deletions
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 0000000..1c27f181
--- /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)));
+}