llvm-6502/test/Transforms/Inline/inline-tail.ll
2005-05-06 06:47:37 +00:00

17 lines
288 B
LLVM

; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep tail
implementation
declare void %bar(int*)
internal void %foo(int* %P) { ;; to be inlined
tail call void %bar(int* %P)
ret void
}
void %caller() {
%A = alloca int
call void %foo(int* %A) ;; not a tail call
ret void
}