aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/indirect_resolve.ll
blob: a62f1f6b7c04ec766dccd00e92018477c868dbbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: opt %s -inline | llvm-dis
; PR4834

define i32 @main() {
  %funcall1_ = call fastcc i32 ()* ()* @f1()
  %executecommandptr1_ = call i32 %funcall1_()
  ret i32 %executecommandptr1_
}

define internal fastcc i32 ()* @f1() nounwind readnone {
  ret i32 ()* @f2
}

define internal i32 @f2() nounwind readnone {
  ret i32 1
}