forked from OSchip/llvm-project
45 lines
983 B
Plaintext
45 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.
|
|
#
|
|
|
|
--- !native
|
|
defined-atoms:
|
|
- name: foo
|
|
type: code
|
|
|
|
undefined-atoms:
|
|
- name: bar
|
|
|
|
--- !archive
|
|
members:
|
|
- name: bar.o
|
|
content: !native
|
|
defined-atoms:
|
|
- name: bar
|
|
scope: global
|
|
type: code
|
|
|
|
- name: bar2
|
|
type: code
|
|
|
|
- name: baz.o
|
|
content: !native
|
|
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: ...
|