aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/dot-symbol.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/dot-symbol.s')
-rw-r--r--test/MC/AsmParser/dot-symbol.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/AsmParser/dot-symbol.s b/test/MC/AsmParser/dot-symbol.s
new file mode 100644
index 000000000000..4a38a4053242
--- /dev/null
+++ b/test/MC/AsmParser/dot-symbol.s
@@ -0,0 +1,12 @@
+# Historically 'as' treats '.' as a reference to the current location in
+# arbitrary contects. We don't support this in general.
+
+# RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t
+# RUN: FileCheck -input-file %t %s
+
+# CHECK: assignment to pseudo-symbol '.' is unsupported (use '.space' or '.org').
+. = . + 8
+
+# CHECK: invalid use of pseudo-symbol '.' as a label
+.:
+ .long 0