aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/ForcedFunctionAttrs/forced.ll
blob: a41e9c0efbe4601cd46b1d62981fa243e2f8dfe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -S -forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL
; RUN: opt < %s -S -forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO
; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO

; CHECK-CONTROL: define void @foo() {
; CHECK-FOO: define void @foo() #0 {
define void @foo() {
  ret void
}


; CHECK-FOO: attributes #0 = { noinline }