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