mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 13:45:16 +00:00
![Fangrui Song](/assets/img/avatar_default.png)
Some diagnostics are more verbose but they don't seem to be more useful than simple `expected ')'`
23 lines
529 B
ArmAsm
23 lines
529 B
ArmAsm
@ RUN: not llvm-mc < %s -triple armv7-none-linux-gnueabi 2>&1 | FileCheck %s
|
|
|
|
@ check for invalid variant
|
|
f1:
|
|
bl bar(blargh)
|
|
@CHECK: error: invalid variant 'blargh'
|
|
@CHECK: bl bar(blargh)
|
|
@CHECK: ^
|
|
|
|
@ check for missing closed paren
|
|
f2:
|
|
.word bar(got
|
|
@CHECK: :[[#@LINE-1]]:16: error: expected ')'
|
|
@CHECK: .word bar(got
|
|
@CHECK: ^
|
|
|
|
@ check for invalid symbol before variant end
|
|
f3:
|
|
.word bar(got+2)
|
|
@CHECK: :[[#@LINE-1]]:16: error: expected ')'
|
|
@CHECK: .word bar(got+2)
|
|
@CHECK: ^
|