aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Inline/2008-09-02-AlwaysInline.ll
blob: b42e559c5af0e2461927ebd2f8c2eeac295cc61d (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llvm-as < %s | opt  -inline-threshold=0 -inline | llvm-dis | not grep call 

define i32 @fn2() alwaysinline {
  ret i32 1
}

define i32 @fn3() {
   %r = call i32 @fn2()
   ret i32 %r
}