llvm-for-llvmta/test/MC/AsmParser/assembler-expressions-fail.s

19 lines
404 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2>&1 | FileCheck %s --check-prefix=ERR
# RUN: not llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s 2>&1 | FileCheck %s --check-prefix=ERR
.text
test2:
jmp baz
# ERR: [[@LINE+1]]:5: error: expected absolute expression
.if . - text2 == 1
nop
.else
ret
.endif
push fs
# No additional errors.
#
# ERR-NOT: {{[0-9]+}}:{{[0-9]+}}: error: