mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
bad8eceeeb
If a complex expression was passed to the .word directive and the first part of the directive failed to parse, a secondary diagnostic would be produced that would clutter the error diagnostics. Improve the diagnostics by consuming the remainder of the statement. llvm-svn: 200160
13 lines
301 B
ArmAsm
13 lines
301 B
ArmAsm
@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
|
|
@ RUN: | FileCheck %s
|
|
|
|
.cpu armv7
|
|
|
|
.type double_diagnostics,%function
|
|
double_diagnostics:
|
|
.word invalid(invalid) + 32
|
|
|
|
@ CHECK: error: invalid variant 'invalid'
|
|
@ CHECK-NOT: error: unexpected token at start of statement
|
|
|