Use toplevel function pass manager as OnTheFly manager.
[oota-llvm.git] / test / ExecutionEngine / test-call.ll
index 89e128a5a12807f3e126c0ae05bd1736a38b9c44..23e4f14a5402aae10b5047a5e9eef3c3b31c7b84 100644 (file)
@@ -1,12 +1,13 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
 declare void %exit(int)
 
 int %test(sbyte %C, short %S) {
-  %X = cast short %S to int
-  ret int %X
+  %X = cast short %S to ubyte
+  %Y = cast ubyte %X to int
+  ret int %Y
 }
 
 void %FP(void(int) * %F) {