New testcase
[oota-llvm.git] / test / Feature / simplecalltest.ll
1 %FunTy = type int(int)
2
3 implementation
4
5 void "invoke"(%FunTy *%x)
6 begin
7         %foo = call %FunTy* %x(int 123)
8         ret void
9 end
10
11 int "main"(int %argc, sbyte **%argv, sbyte **%envp)
12 begin
13         %retval = call int (int) *%test(int %argc)
14         %two    = add int %retval, %retval
15         %retval2 = call int %test(int %argc)
16
17         %two2 = add int %two, %retval2
18         call void %invoke (%FunTy* %test)
19         ret int %two2
20 end
21
22 int "test"(int %i0)
23 begin
24     ret int %i0
25 end