aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..1c27f181c0
--- /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)));
+}