optnone.ll 255 B

123456789101112
  1. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
  2. ; Check for the presence of attribute optnone in the disassembly.
  3. ; CHECK: @foo() #0
  4. define void @foo() #0 {
  5. ret void
  6. }
  7. ; CHECK: attributes #0 = { noinline optnone }
  8. attributes #0 = { optnone noinline }