xref: /llvm-project/llvm/test/Assembler/2008-09-02-FunctionNotes.ll (revision daab81cda18a1e33aa8973ee34589960b4382f25)
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() {
16define void @fn3() {
17  ret void
18}
19
20; CHECK: attributes #0 = { alwaysinline }
21; CHECK: attributes #1 = { noinline }
22