opt test.ll -S -always-inline
; ModuleID = 'test.ll'
source_filename = "test.ll"
declare void @foo(i32)
; Function Attrs: alwaysinline
define i32 @"class.Int.=="(i32, i32) #0 {
entry:
%2 = add i32 %0, %1
ret i32 %2
}
define i32 @main(i32, i8**) {
entry:
call void @foo(i32 2)
ret i32 0
}
attributes #0 = { alwaysinline }