Use toplevel function pass manager as OnTheFly manager.
[oota-llvm.git] / test / Feature / calltest.ll
index 1be7ad59719feaaef89d1a20744dfd7a2b781fa0..f015223c5d75acc528b219579303be9b92bad1bb 100644 (file)
@@ -1,15 +1,18 @@
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
+; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+; RUN: diff %t1.ll %t2.ll
+
 %FunTy = type int(int)
 
-declare int "test"(...)   ; Test differences of prototype
-declare int "test"()      ; Differ only by vararg
+declare int "test"(int)   ; Test forward declaration merging
 
 implementation
 
-void "invoke"(%FunTy *%x)
-begin
+void "invoke"(%FunTy *%x) {
        %foo = call %FunTy* %x(int 123)
+       %foo2 = tail call %FunTy* %x(int 123)
        ret void
-end
+}
 
 int "main"(int %argc)   ; TODO: , sbyte **argv, sbyte **envp)
 begin