summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/AsmParser')
-rw-r--r--llvm/test/MC/AsmParser/directive_print.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_print.s b/llvm/test/MC/AsmParser/directive_print.s
new file mode 100644
index 00000000000..9d228440885
--- /dev/null
+++ b/llvm/test/MC/AsmParser/directive_print.s
@@ -0,0 +1,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