xref: /aosp_15_r20/external/llvm/test/Feature/optnone.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; Check for the presence of attribute optnone in the disassembly.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; CHECK: @foo() #0
6*9880d681SAndroid Build Coastguard Workerdefine void @foo() #0 {
7*9880d681SAndroid Build Coastguard Worker  ret void
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; CHECK: attributes #0 = { noinline optnone }
11*9880d681SAndroid Build Coastguard Workerattributes #0 = { optnone noinline }
12*9880d681SAndroid Build Coastguard Worker
13