xref: /llvm-project/llvm/test/MC/AsmParser/directive_print.s (revision 45f949ee469f3e59d30a88c97aa7c1139069b261)
1# RUN: llvm-mc -triple i386 %s | FileCheck %s
2# RUN: not llvm-mc -triple i386 --defsym ERR=1 %s 2>&1 | FileCheck %s --check-prefix=ERR
3
4T1:
5# CHECK: e
6# CHECK: 2.718281828459045235
7.print "e"
8.print "2.718281828459045235"
9
10.ifdef ERR
11# CHECK-ERR: :[[#@LINE+2]]:8: expected double quoted string after .print
12.altmacro
13.print <pi>
14.noaltmacro
15
16# ERR: :[[#@LINE+1]]:12: error: expected newline
17.print "a" "misplaced-string"
18.endif
19