llvm-project/lld/test/ingroup-test.objtxt

39 lines
975 B
Plaintext

# RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER
---
defined-atoms:
- name: A
scope: global
- name: B
scope: global
references:
- kind: in-group
offset: 0
target: A
- name: F
scope: global
references:
- kind: in-group
offset: 0
target: E
- name: G
scope: global
references:
- kind: in-group
offset: 0
target: E
- name: E
scope: global
references:
- kind: in-group
offset: 0
target: A
...
# CHKORDER: - name: A
# CHKORDER: - name: B
# CHKORDER: - name: E
# CHKORDER: - name: F
# CHKORDER: - name: G