1 ; This checks to ensure that the inline pass deletes functions if they get
2 ; inlined into all of their callers.
4 ; RUN: llvm-as < %s | opt -inline | llvm-dis | \
5 ; RUN: not grep @reallysmall
7 define internal i32 @reallysmall(i32 %A) {
11 define void @caller1() {
12 call i32 @reallysmall( i32 5 ) ; <i32>:1 [#uses=0]
16 define void @caller2(i32 %A) {
17 call i32 @reallysmall( i32 %A ) ; <i32>:1 [#uses=0]
21 define i32 @caller3(i32 %A) {
22 %B = call i32 @reallysmall( i32 %A ) ; <i32> [#uses=1]