blob: b3df078d231464828d4c8a670b413b2e5e53a708 [file] [log] [blame]
# RUN: lld -core %s %p/Inputs/gnulinkonce-rearrange-resolve.objtxt | FileCheck %s
#
# Test that gnu linkonce sections are parsed and the first section selected for symbol
# resolution
#
---
defined-atoms:
- 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
- name: f1
scope: global
type: code
- name: f2
scope: global
type: code
- name: g1
scope: global
type: code
- name: d1
scope: global
type: data
...
# CHECK: defined-atoms:
# CHECK: - name: g1
# CHECK: ref-name: [[PARENT:[a-zA-Z\.0-9_]+]]
# CHECK: type: gnu-linkonce
# CHECK: references:
# CHECK: - kind: group-child
# CHECK: target: f1
# CHECK: - kind: group-child
# CHECK: target: f2
# CHECK: - kind: group-child
# CHECK: target: [[CHILD:[a-zA-Z\.0-9_]+]]
# CHECK: - kind: group-child
# CHECK: target: d1
# CHECK: - name: f1
# CHECK: - name: f2
# CHECK: - name: g1
# CHECK: ref-name: [[CHILD]]
# CHECK: - name: d1