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

26 lines
604 B
Plaintext

# RUN: lld -core --add-pass layout %s | FileCheck %s -check-prefix=CHKORDER
---
defined-atoms:
- name: fn
scope: global
- name: fn1
scope: global
references:
- kind: layout-before
offset: 0
target: fn
- name: fn2
scope: global
references:
- kind: layout-before
offset: 0
target: fn1
...
# CHKORDER: - name: fn2
# CHKORDER: - name: fn1
# CHKORDER: - name: fn