aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-25 17:47:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-25 17:47:17 +0000
commit8b2b43c41d2f9a25d1eb387bd74dd761fe3cb83b (patch)
treeb95f0f13ca54c955232821ddb35397e2e592ab7c /test/MC
parent0143ac136847977bea1ba49f4f343feeabfc6a13 (diff)
downloadexternal_llvm-8b2b43c41d2f9a25d1eb387bd74dd761fe3cb83b.zip
external_llvm-8b2b43c41d2f9a25d1eb387bd74dd761fe3cb83b.tar.gz
external_llvm-8b2b43c41d2f9a25d1eb387bd74dd761fe3cb83b.tar.bz2
MC: Improve some diagnostics on uses of '.' pseudo-symbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-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 0000000..4a38a40
--- /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