Add a check to catch an incorrect upgrade.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 9 Dec 2006 19:35:43 +0000 (19:35 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 9 Dec 2006 19:35:43 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32402 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/2006-12-09-Cast-To-Bool.ll [new file with mode: 0644]

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 (file)
index 0000000..2ede90a
--- /dev/null
@@ -0,0 +1,5 @@
+; RUN llvm-upgrade < %s | llvm-as
+bool %main(int %X) {
+  %res = cast bool true to bool
+  ret bool %res
+}