forked from OSchip/llvm-project
46 lines
983 B
Plaintext
46 lines
983 B
Plaintext
# RUN: lld -core %s | FileCheck %s
|
|
|
|
#
|
|
# Tests archives in YAML. Tests that an undefined in a regular file will load
|
|
# all atoms in select archive members.
|
|
#
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: foo
|
|
type: code
|
|
|
|
undefined-atoms:
|
|
- name: bar
|
|
|
|
---
|
|
kind: archive
|
|
members:
|
|
- name: bar.o
|
|
content:
|
|
defined-atoms:
|
|
- name: bar
|
|
scope: global
|
|
type: code
|
|
|
|
- name: bar2
|
|
type: code
|
|
|
|
- name: baz.o
|
|
content:
|
|
defined-atoms:
|
|
- name: baz
|
|
scope: global
|
|
type: code
|
|
|
|
- name: baz2
|
|
type: code
|
|
...
|
|
|
|
# CHECK: name: foo
|
|
# CHECK-NOT: undefined-atoms:
|
|
# CHECK: name: bar
|
|
# CHECK: name: bar2
|
|
# CHECK-NOT: name: baz
|
|
# CHECK: ...
|