Fix tests.
[oota-llvm.git] / test / ExecutionEngine / test-call.ll
index 50f0e6e9e1b7d5ad5aa152a96952486f4e7e1f8e..23e4f14a5402aae10b5047a5e9eef3c3b31c7b84 100644 (file)
@@ -1,9 +1,13 @@
+; 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) {