llvm-project/lld/test/core/undef-coalesce.objtxt

27 lines
642 B
Plaintext

# RUN: lld -core %s %p/Inputs/undef-coalesce.objtxt %p/Inputs/undef-coalesce2.objtxt | FileCheck %s
#
# Test that undefined symbols are coalesced with other undefined symbols
# and definitions override them.
#
---
defined-atoms:
- name: foo
type: code
undefined-atoms:
- name: malloc
- name: free
...
# CHECK: defined-atoms:
# CHECK: name: foo
# CHECK: name: bar
# CHECK: name: myfunc
# CHECK: scope: global
# CHECK: undefined-atoms:
# CHECK: name: malloc
# CHECK: name: free
# CHECK: ...