diff --git a/lld/test/core/error-duplicate-absolutes.objtxt b/lld/test/core/error-duplicate-absolutes.objtxt new file mode 100644 index 000000000000..533297e59dcd --- /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