aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2006-12-09-Cast-To-Bool.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2006-12-09-Cast-To-Bool.ll')
-rw-r--r--test/Assembler/2006-12-09-Cast-To-Bool.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/2006-12-09-Cast-To-Bool.ll b/test/Assembler/2006-12-09-Cast-To-Bool.ll
new file mode 100644
index 0000000..a70262c
--- /dev/null
+++ b/test/Assembler/2006-12-09-Cast-To-Bool.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llvm-dis | grep bitcast
+
+define i1 @main(i32 %X) {
+ %res = bitcast i1 true to i1
+ ret i1 %res
+}