1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/Assembler/mustprogress-parse-error-0.ll
Nikita Popov 929097793e [AsmParser] Unify parsing of attributes
Continuing on from D105780, this should be the last major bit of
attribute cleanup. Currently, LLParser implements attribute parsing
for functions, parameters and returns separately, enumerating all
supported (and unsupported) attributes each time. This patch
extracts the common parsing logic, and performs a check afterwards
whether the attribute is valid in the given position. Parameters
and returns are handled together, while function attributes need
slightly different logic to support attribute groups.

Differential Revision: https://reviews.llvm.org/D105938
2021-07-15 17:51:11 +02:00

8 lines
188 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: [[@LINE+1]]:35: error: this attribute does not apply to parameters
define void @test_mustprogress(i8 mustprogress %a) {
ret void
}