summaryrefslogtreecommitdiffstats
path: root/test/MC/MachO/bad-dollar.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/MachO/bad-dollar.s')
-rw-r--r--test/MC/MachO/bad-dollar.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/MachO/bad-dollar.s b/test/MC/MachO/bad-dollar.s
new file mode 100644
index 0000000..fd72ed0
--- /dev/null
+++ b/test/MC/MachO/bad-dollar.s
@@ -0,0 +1,5 @@
+// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err > %t
+// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
+
+.long $1
+// CHECK-ERROR: 4:7: error: invalid token in expression
OpenPOWER on IntegriCloud