summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/optnone.ll
blob: 3cb6efdf45e7426ccfb911ec45e9234c585ddd10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; REQUIRE: native

; Check for the presence of attribute optnone in the disassembly.

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

; CHECK: attributes #0 = { noinline optnone }
attributes #0 = { optnone noinline }

OpenPOWER on IntegriCloud