1 ; RUN: opt -S -O2 -inline-threshold=1 < %s | FileCheck %s
3 %class.A = type { i32 }
5 define void @_Z3barP1A(ptr %a) #0 {
7 %0 = load i32, ptr %a, align 4
8 %add = add nsw i32 %0, 10
9 store i32 %add, ptr %a, align 4
13 define void @_Z3foov() #0 {
14 ; CHECK-LABEL: @_Z3foov(
15 ; CHECK-NOT: call void @_Z3barP1A
18 %a = alloca %class.A, align 4
19 call void @_Z3barP1A(ptr %a)