mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 23:33:57 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2724 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
faa967ea61
commit
9488e1bf26
25
test/Feature/simplecalltest.ll
Normal file
25
test/Feature/simplecalltest.ll
Normal file
@ -0,0 +1,25 @@
|
||||
%FunTy = type int(int)
|
||||
|
||||
implementation
|
||||
|
||||
void "invoke"(%FunTy *%x)
|
||||
begin
|
||||
%foo = call %FunTy* %x(int 123)
|
||||
ret void
|
||||
end
|
||||
|
||||
int "main"(int %argc, sbyte **%argv, sbyte **%envp)
|
||||
begin
|
||||
%retval = call int (int) *%test(int %argc)
|
||||
%two = add int %retval, %retval
|
||||
%retval2 = call int %test(int %argc)
|
||||
|
||||
%two2 = add int %two, %retval2
|
||||
call void %invoke (%FunTy* %test)
|
||||
ret int %two2
|
||||
end
|
||||
|
||||
int "test"(int %i0)
|
||||
begin
|
||||
ret int %i0
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user