hanchenye-llvm-project/lld/test/core/layout-error-test.objtxt

23 lines
558 B
Plaintext

# REQUIRES: asserts
# RUN: not lld -core --add-pass layout -mllvm -debug-only=LayoutPass \
# RUN: %s 2> %t.err
# RUN: FileCheck %s -check-prefix=CHECK < %t.err
---
defined-atoms:
- name: fn
scope: global
references:
- kind: layout-before
offset: 0
target: fn
- kind: in-group
offset: 0
target: fn
...
# CHECK: There's a cycle in a follow-on chain!
# CHECK: fn
# CHECK: layout-before: fn
# CHECK: in-group: fn