summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/directive_print.s
blob: 9d228440885235d207006dfc4b22f7cd35d697a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RUN: not llvm-mc -triple i386-linux-gnu %s 2> %t.err | FileCheck %s
# RUN: FileCheck < %t.err %s --check-prefix=CHECK-ERR

T1:
# CHECK: e
# CHECK: 2.718281828459045235
.print "e"
.print "2.718281828459045235"

T2:
# CHECK-ERR: expected double quoted string after .print
.altmacro
.print <pi>
.noaltmacro

T3:
# CHECK-ERR: expected end of statement
.print "a" "misplaced-string"
OpenPOWER on IntegriCloud