1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/ExecutionEngine/test-call.ll

23 lines
373 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
2004-11-07 00:32:43 +01:00
; RUN: lli %t.bc > /dev/null
declare void %exit(int)
2002-12-28 21:01:07 +01:00
int %test(sbyte %C, short %S) {
%X = cast short %S to ubyte
%Y = cast ubyte %X to int
ret int %Y
2002-12-28 21:01:07 +01:00
}
2002-12-13 15:15:20 +01:00
void %FP(void(int) * %F) {
2002-12-28 21:01:07 +01:00
%X = call int %test(sbyte 123, short 1024)
call void %F(int %X)
2002-12-13 15:15:20 +01:00
ret void
}
int %main() {
2002-12-13 15:15:20 +01:00
call void %FP(void(int)* %exit)
ret int 1
}