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

30 lines
732 B
Plaintext

# RUN: lld -core %p/undef-fallback.objtxt %p/Inputs/undef-fallback.objtxt | FileCheck %s
# Test that fallback atoms can be parsed by YAML reader and processed by the
# core linker.
---
defined-atoms:
- name: def1
scope: global
undefined-atoms:
- name: undef1
fallback:
name: fallback1
- name: undef2
fallback:
name: fallback2
...
# CHECK: defined-atoms:
# CHECK-NEXT: - name: def1
# CHECK-NEXT: scope: global
# CHECK-NEXT: - name: fallback1
# CHECK-NEXT: ref-name: fallback1
# CHECK-NEXT: undefined-atoms:
# CHECK-NEXT: - name: fallback1
# CHECK-NEXT: - name: fallback2
# CHECK-NOT: - name: fallback3