blob: 23e4f14a5402aae10b5047a5e9eef3c3b31c7b84 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
4
5declare void %exit(int)
6
7int %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
13void %FP(void(int) * %F) {
14 %X = call int %test(sbyte 123, short 1024)
15 call void %F(int %X)
16 ret void
17}
18
19int %main() {
20 call void %FP(void(int)* %exit)
21 ret int 1
22}