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 0000000..ec1d723 --- /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 noopt in the disassembly. + +; CHECK: @foo() #0 +define void @foo() #0 { + ret void +} + +; CHECK: attributes #0 = { optnone } +attributes #0 = { optnone } + |