2009-09-09 06:34:10 +08:00
|
|
|
; RUN: opt < %s -inline -S | not grep tail
|
2005-05-06 14:47:37 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
declare void @bar(i32*)
|
2005-05-06 14:47:37 +08:00
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define internal void @foo(i32* %P) {
|
|
|
|
tail call void @bar( i32* %P )
|
|
|
|
ret void
|
2005-05-06 14:47:37 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @caller() {
|
|
|
|
%A = alloca i32 ; <i32*> [#uses=1]
|
|
|
|
call void @foo( i32* %A )
|
|
|
|
ret void
|
2005-05-06 14:47:37 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|