1 ; This checks to ensure that the inline pass deletes functions if they get
2 ; inlined into all of their callers.
4 ; RUN: opt < %s -inline -S | \
5 ; RUN: not grep @reallysmall
7 define internal i32 @reallysmall(i32 %A) {
8 ; CHECK-NOT: @reallysmall
13 define void @caller1() {
14 ; CHECK-LABEL: define void @caller1()
16 call i32 @reallysmall(i32 5)
21 define void @caller2(i32 %A) {
22 ; CHECK-LABEL: define void @caller2(i32 %A)
24 call i32 @reallysmall(i32 %A)
29 define i32 @caller3(i32 %A) {
30 ; CHECK-LABEL: define void @caller3(i32 %A)
32 %B = call i32 @reallysmall(i32 %A)