aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2008-09-29-RetAttr.ll
blob: f7db96d22641d939532f09521d2707a8917fac63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Test return attributes
; RUN: llvm-as < %s | llvm-dis | grep "define inreg i32"
; RUN: llvm-as < %s | llvm-dis | grep "call inreg i32"

define inreg i32 @fn1() {
  ret i32 0
}

define void @fn2() {
  %t = call inreg i32 @fn1()
  ret void
}