These tests need llvm-upgrade. This fixes last night's nightly test fallout.
[oota-llvm.git] / test / ExecutionEngine / test-call.ll
1 ; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
3
4
5 declare void %exit(int)
6
7 int %test(sbyte %C, short %S) {
8   %X = cast short %S to ubyte
9   %Y = cast ubyte %X to int
10   ret int %Y
11 }
12
13 void %FP(void(int) * %F) {
14         %X = call int %test(sbyte 123, short 1024)
15         call void %F(int %X)
16         ret void
17 }
18
19 int %main() {
20         call void %FP(void(int)* %exit)
21         ret int 1
22 }