1 ; RUN: opt < %s -inline -S | FileCheck %s
2 ; RUN: opt < %s -passes='cgscc(devirt<4>(inline))' -S | FileCheck %s
6 %funcall1_ = call fastcc i32 ()* () @f1()
7 %executecommandptr1_ = call i32 %funcall1_()
8 ret i32 %executecommandptr1_
11 define internal fastcc i32 ()* @f1() nounwind readnone {
15 define internal i32 @f2() nounwind readnone {
20 ; CHECK-NEXT: ret i32 1
26 declare i8* @f1a(i8*) ssp align 2
28 define internal i32 @f2a(i8* %t) inlinehint ssp {
33 define internal i32 @f3a(i32 (i8*)* %__f) ssp {
35 %A = call i32 %__f(i8* undef)
39 define i32 @test2(i8* %this) ssp align 2 {
40 %X = call i32 @f3a(i32 (i8*)* @f2a) ssp
44 ; CHECK-LABEL: @test2(
45 ; CHECK-NEXT: ret i32 41