summaryrefslogtreecommitdiff
path: root/test/MC/ARM/bracket-darwin.s
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-02-24 21:59:22 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-02-24 21:59:22 +0000
commit93c65e6e661eda75711363bdd5ca15909920e1f0 (patch)
treee81730c5095f094b742ad43c74514fbfb002908a /test/MC/ARM/bracket-darwin.s
parent12d18a07a084b073b768e47b9afe45cc3c6a92f2 (diff)
downloadllvm-93c65e6e661eda75711363bdd5ca15909920e1f0.tar.gz
llvm-93c65e6e661eda75711363bdd5ca15909920e1f0.tar.bz2
llvm-93c65e6e661eda75711363bdd5ca15909920e1f0.tar.xz
Restore r125595 (reverted in r126336) with modifications:
Introduce a variable in the AsmParserExtension whether [] is valid in an expression. If it is true, parse them like (). Enable this for ELF only. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/bracket-darwin.s')
-rw-r--r--test/MC/ARM/bracket-darwin.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/ARM/bracket-darwin.s b/test/MC/ARM/bracket-darwin.s
new file mode 100644
index 0000000000..dc8b348575
--- /dev/null
+++ b/test/MC/ARM/bracket-darwin.s
@@ -0,0 +1,5 @@
+// RUN: not llvm-mc -triple arm-apple-darwin %s 2> %t
+// RUN: FileCheck -input-file %t %s
+
+// CHECK: error: brackets expression not supported on this target
+.byte [4-3]