aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2007-01-01-Cast-To-Bool.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2007-01-01-Cast-To-Bool.ll')
-rw-r--r--test/Assembler/2007-01-01-Cast-To-Bool.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Assembler/2007-01-01-Cast-To-Bool.ll b/test/Assembler/2007-01-01-Cast-To-Bool.ll
new file mode 100644
index 0000000..2635151
--- /dev/null
+++ b/test/Assembler/2007-01-01-Cast-To-Bool.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep {icmp ne}
+bool %main(int %X) {
+ %res = cast bool true to bool
+ ret bool %res
+}