2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER
|
2013-02-08 04:16:12 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
defined-atoms:
|
|
|
|
- name: A
|
|
|
|
scope: global
|
|
|
|
references:
|
|
|
|
- kind: layout-after
|
|
|
|
offset: 0
|
|
|
|
target: B
|
|
|
|
- name: B
|
|
|
|
scope: global
|
|
|
|
references:
|
|
|
|
- kind: in-group
|
|
|
|
offset: 0
|
|
|
|
target: A
|
|
|
|
- kind: layout-after
|
|
|
|
offset: 0
|
|
|
|
target: E
|
|
|
|
- name: F
|
|
|
|
scope: global
|
|
|
|
references:
|
|
|
|
- kind: in-group
|
|
|
|
offset: 0
|
|
|
|
target: E
|
|
|
|
- kind: layout-after
|
|
|
|
offset: 0
|
|
|
|
target: G
|
|
|
|
- name: G
|
|
|
|
scope: global
|
|
|
|
references:
|
|
|
|
- kind: in-group
|
|
|
|
offset: 0
|
|
|
|
target: E
|
|
|
|
- name: E
|
|
|
|
scope: global
|
|
|
|
references:
|
|
|
|
- kind: in-group
|
|
|
|
offset: 0
|
|
|
|
target: A
|
|
|
|
- kind: layout-after
|
|
|
|
offset: 0
|
|
|
|
target: F
|
|
|
|
...
|
|
|
|
|
|
|
|
# CHKORDER: - name: A
|
|
|
|
# CHKORDER: - name: B
|
|
|
|
# CHKORDER: - name: E
|
|
|
|
# CHKORDER: - name: F
|
|
|
|
# CHKORDER: - name: G
|