llvm-project/lld/test/core/archive-basic.objtxt
Shankar Easwaran df4f12bb65 [lld][test] organize test directory. No change in functionality
* Renames few tests which had extension objtxt to test
* created core directory that contains all the core tests

llvm-svn: 189720
2013-08-31 05:59:52 +00:00

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: ...