| # RUN: not lld -core %s %p/Inputs/sectiongroup-gnulinkonce-error.objtxt 2>&1 | FileCheck %s |
| |
| # |
| # Test that section groups/gnu linkonce sections are parsed and a merge error |
| # is displayed at the time of symbol resolution. |
| # |
| |
| --- |
| defined-atoms: |
| - name: f1 |
| scope: global |
| type: code |
| - name: f2 |
| scope: global |
| type: code |
| - name: g1 |
| scope: global |
| type: code |
| - name: d1 |
| scope: global |
| type: data |
| - name: g1 |
| scope: global |
| type: group-comdat |
| references: |
| - kind: group-child |
| target: f1 |
| - kind: group-child |
| target: f2 |
| - kind: group-child |
| target: g1 |
| - kind: group-child |
| target: d1 |
| ... |
| |
| #CHECK: SymbolTable: error while merging g1 |
| #CHECK: LLVM ERROR: duplicate symbol error |
| |