diff options
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/dot-symbol.s | 12 |
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 |