hanchenye-llvm-project/lld/test/core/sectiongroup-gnulinkonce-er...

65 lines
1.6 KiB
Plaintext

# RUN: not lld -core %s 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
---
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: gnu-linkonce
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