• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test function attributes
2; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3; RUN: verify-uselistorder %s
4
5; CHECK: define void @fn1() #0
6define void @fn1() alwaysinline {
7  ret void
8}
9
10; CHECK: define void @fn2() #1
11define void @fn2() noinline {
12  ret void
13}
14
15; CHECK: define void @fn3()
16; CHECK-NOT: define void @fn3() #{{.*}}
17define void @fn3() {
18  ret void
19}
20
21; CHECK: attributes #0 = { alwaysinline }
22; CHECK: attributes #1 = { noinline }
23