1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/ExecutionEngine/test-call.ll

23 lines
358 B
LLVM
Raw Normal View History

2004-11-07 00:32:43 +01:00
; RUN: llvm-as -f %s -o %t.bc
; 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
}