Second part of pr16069
[oota-llvm.git] / test / Transforms / TailCallElim / trivial_codegen_tailcall.ll
index 98c233255ea809a2ddff6b0588ec4e15704dd343..7049e4d588d43b612c385ba93e4202c0668e7bbb 100644 (file)
@@ -1,12 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | \
-; RUN:    grep {tail call void @foo}
+; RUN: opt < %s -tailcallelim -S | FileCheck %s
 
-declare void %foo()
 
+declare void @foo()
 
-void %bar() {
-       call void %foo()
+define void @bar() {
+; CHECK: tail call void @foo()
+       call void @foo()
        ret void
 }
 
-