testcase for the recent inliner improvement.
[oota-llvm.git] / test / Transforms / Inline / inline-tail.ll
1 ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep tail
2
3 implementation
4
5 declare void %bar(int*)
6
7 internal void %foo(int* %P) {  ;; to be inlined
8   tail call void %bar(int* %P)
9   ret void
10 }
11
12 void %caller() {
13         %A = alloca int
14         call void %foo(int* %A)   ;; not a tail call
15         ret void
16 }