aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lld/test/core/error-duplicate-absolutes.objtxt24
1 files changed, 24 insertions, 0 deletions
diff --git a/lld/test/core/error-duplicate-absolutes.objtxt b/lld/test/core/error-duplicate-absolutes.objtxt
new file mode 100644
index 0000000..533297e
--- /dev/null
+++ b/lld/test/core/error-duplicate-absolutes.objtxt
@@ -0,0 +1,24 @@
+# RUN: not lld -core %s 2> %t.err
+# RUN: FileCheck %s < %t.err
+
+#
+# Test that duplicate absolute atoms produces a readable error.
+#
+
+---
+absolute-atoms:
+ - name: absatom
+ value: 0
+ scope: global
+undefined-atoms:
+ - name: undefatom
+---
+absolute-atoms:
+ - name: absatom
+ value: 0
+ scope: global
+...
+
+
+# CHECK: SymbolTable: error while merging absatom
+# CHECK: LLVM ERROR: duplicate symbol error