2018-05-12 01:30:28 +08:00
|
|
|
# RUN: not llvm-mc -triple riscv32 < %s 2>&1 \
|
|
|
|
# RUN: | FileCheck -check-prefixes=CHECK %s
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
|
|
.option
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
|
|
.option 123
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected identifier
|
|
|
|
.option "str"
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
|
|
.option rvc foo
|
|
|
|
|
2018-11-29 00:39:14 +08:00
|
|
|
# CHECK: warning: unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or 'norelax'
|
2018-05-12 01:30:28 +08:00
|
|
|
.option bar
|
2018-11-29 00:39:14 +08:00
|
|
|
|
|
|
|
# CHECK: error: .option pop with no .option push
|
|
|
|
.option pop
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
|
|
.option push 123
|
|
|
|
|
|
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
|
|
.option pop 123
|