2008-09-29 20:49:50 +00:00
|
|
|
; Test function attributes
|
2013-02-11 08:34:57 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2008-09-02 20:58:16 +00:00
|
|
|
|
2013-02-20 07:21:42 +00:00
|
|
|
; CHECK: define void @fn1() #0
|
2008-09-27 00:25:28 +00:00
|
|
|
define void @fn1() alwaysinline {
|
2008-09-02 20:58:16 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2013-02-20 07:21:42 +00:00
|
|
|
; CHECK: define void @fn2() #1
|
2008-09-27 00:25:28 +00:00
|
|
|
define void @fn2() noinline {
|
2008-09-02 20:58:16 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2013-02-11 08:34:57 +00:00
|
|
|
; CHECK: define void @fn3()
|
2013-02-20 07:21:42 +00:00
|
|
|
; CHECK-NOT: define void @fn3() #{{.*}}
|
2008-09-02 21:47:13 +00:00
|
|
|
define void @fn3() {
|
|
|
|
ret void
|
|
|
|
}
|
2013-02-20 07:21:42 +00:00
|
|
|
|
|
|
|
; CHECK: attributes #0 = { alwaysinline }
|
|
|
|
; CHECK: attributes #1 = { noinline }
|