1 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
2 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3 ; RUN: diff %t1.ll %t2.ll
7 declare int "test"(int) ; Test forward declaration merging
11 void "invoke"(%FunTy *%x) {
12 %foo = call %FunTy* %x(int 123)
13 %foo2 = tail call %FunTy* %x(int 123)
17 int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp)
19 %retval = call int (int) *%test(int %argc)
20 %two = add int %retval, %retval
21 %retval2 = invoke int %test(int %argc)
22 to label %Next except label %Error
24 %two2 = add int %two, %retval2
25 call void %invoke (%FunTy* %test)