2021-03-07 04:25:22 +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
|
2017-10-02 16:36:31 +02:00
|
|
|
|
|
|
|
T1:
|
|
|
|
# CHECK: e
|
|
|
|
# CHECK: 2.718281828459045235
|
|
|
|
.print "e"
|
|
|
|
.print "2.718281828459045235"
|
|
|
|
|
2021-03-07 04:25:22 +01:00
|
|
|
.ifdef ERR
|
|
|
|
# CHECK-ERR: :[[#@LINE+2]]:8: expected double quoted string after .print
|
2017-10-02 16:36:31 +02:00
|
|
|
.altmacro
|
|
|
|
.print <pi>
|
|
|
|
.noaltmacro
|
|
|
|
|
2021-03-07 04:25:22 +01:00
|
|
|
# ERR: :[[#@LINE+1]]:12: error: expected newline
|
2017-10-02 16:36:31 +02:00
|
|
|
.print "a" "misplaced-string"
|
2021-03-07 04:25:22 +01:00
|
|
|
.endif
|