aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Hexagon/equ.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Hexagon/equ.s')
-rw-r--r--test/MC/Hexagon/equ.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/Hexagon/equ.s b/test/MC/Hexagon/equ.s
new file mode 100644
index 00000000000..fbf09edbbc1
--- /dev/null
+++ b/test/MC/Hexagon/equ.s
@@ -0,0 +1,9 @@
+# RUN: not llvm-mc -arch=hexagon %s 2> %t
+# RUN: FileCheck < %t %s
+
+.equ a, 0
+.set a, 1
+.equ a, 2
+.equiv a, 3
+# CHECK: {{[Ee]}}rror: redefinition of 'a'
+