Update credits and fix sorting issue.
[llvm-complete.git] / test / Feature / simplecalltest.ll
blob37fa6c62ab2fbfe22cf3574d6a54dbdc7c450207
1 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
5 %FunTy = type int(int)
7 implementation
9 void "invoke"(%FunTy *%x)
10 begin
11         %foo = call %FunTy* %x(int 123)
12         ret void
13 end
15 int "main"(int %argc, sbyte **%argv, sbyte **%envp)
16 begin
17         %retval = call int (int) *%test(int %argc)
18         %two    = add int %retval, %retval
19         %retval2 = call int %test(int %argc)
21         %two2 = add int %two, %retval2
22         call void %invoke (%FunTy* %test)
23         ret int %two2
24 end
26 int "test"(int %i0)
27 begin
28     ret int %i0
29 end