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