aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll')
-rw-r--r--test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll b/test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll
new file mode 100644
index 0000000..ebe4566
--- /dev/null
+++ b/test/CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+int %foo() {
+ ret int and (int 123456, int cast (int()* %foo to int))
+}