diff options
| -rw-r--r-- | llvm/test/MC/RISCV/invalid-attribute.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/RISCV/invalid-attribute.s b/llvm/test/MC/RISCV/invalid-attribute.s index 3e1fc3b..1d732af 100644 --- a/llvm/test/MC/RISCV/invalid-attribute.s +++ b/llvm/test/MC/RISCV/invalid-attribute.s @@ -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} |
