bolt/deps/llvm-18.1.8/llvm/test/MC/AsmParser/directive_print.s

19 lines
428 B
ArmAsm
Raw Normal View History

2025-02-14 19:21:04 +01:00
# RUN: llvm-mc -triple i386 %s | FileCheck %s
# RUN: not llvm-mc -triple i386 --defsym ERR=1 %s 2>&1 | FileCheck %s --check-prefix=ERR
T1:
# CHECK: e
# CHECK: 2.718281828459045235
.print "e"
.print "2.718281828459045235"
.ifdef ERR
# CHECK-ERR: :[[#@LINE+2]]:8: expected double quoted string after .print
.altmacro
.print <pi>
.noaltmacro
# ERR: :[[#@LINE+1]]:12: error: expected newline
.print "a" "misplaced-string"
.endif