1 ; RUN: opt -abort-on-max-devirt-iterations-reached -passes='cgscc(devirt<1>(inline,instcombine))' -S < %s | FileCheck %s
2 ; RUN: opt -abort-on-max-devirt-iterations-reached -passes='default<O2>' -S < %s | FileCheck %s
4 define i32 @i() alwaysinline {
8 ; CHECK-LABEL: define i32 @main
9 ; CHECK-NEXT: ret i32 45
13 store i32 ()* @i, i32 ()** %a
14 %r = call i32 @call(i32 ()** %a)
18 define i32 @call(i32 ()** %a) alwaysinline {
19 %c = load i32 ()*, i32 ()** %a