diff options
Diffstat (limited to 'test/Feature/optnone.ll')
-rw-r--r-- | test/Feature/optnone.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Feature/optnone.ll b/test/Feature/optnone.ll new file mode 100644 index 0000000000000..7d8afd4b773ef --- /dev/null +++ b/test/Feature/optnone.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; 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 } + |