mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-26 05:18:46 +00:00
[RISCV] Add a test with unknown argument of .attribute directive
This commit is contained in:
parent
6a5da11b87
commit
c2d7ee79b9
@ -1,4 +1,5 @@
|
||||
## Negative tests:
|
||||
## - Unknown attribute name.
|
||||
## - Feed integer value to string type attribute.
|
||||
## - Feed string value to integer type attribute.
|
||||
## - Invalid arch string.
|
||||
@ -6,6 +7,9 @@
|
||||
# RUN: not llvm-mc %s -triple=riscv32 -filetype=asm 2>&1 | FileCheck %s
|
||||
# RUN: not llvm-mc %s -triple=riscv64 -filetype=asm 2>&1 | FileCheck %s
|
||||
|
||||
.attribute unknown, "unknown"
|
||||
# CHECK: [[@LINE-1]]:12: error: attribute name not recognised: unknown
|
||||
|
||||
.attribute arch, "foo"
|
||||
# CHECK: [[@LINE-1]]:18: error: invalid arch name 'foo', string must begin with rv32{i,e,g} or rv64{i,e,g}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user