2013-09-13 03:14:05 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
|
|
|
|
|
|
|
# Test that fallback atoms can be parsed by YAML reader and processed by the
|
|
|
|
# core linker.
|
|
|
|
|
|
|
|
---
|
|
|
|
defined-atoms:
|
2013-11-21 04:51:55 +08:00
|
|
|
- name: def1
|
|
|
|
scope: global
|
2013-09-13 03:14:05 +08:00
|
|
|
|
|
|
|
undefined-atoms:
|
2013-11-21 04:51:55 +08:00
|
|
|
- name: undef1
|
2013-09-13 03:14:05 +08:00
|
|
|
fallback:
|
2013-11-21 04:51:55 +08:00
|
|
|
name: fallback1
|
|
|
|
- name: undef2
|
|
|
|
fallback:
|
|
|
|
name: fallback2
|
|
|
|
---
|
|
|
|
defined-atoms:
|
|
|
|
- name: fallback1
|
|
|
|
|
|
|
|
undefined-atoms:
|
|
|
|
- name: def1
|
|
|
|
fallback:
|
|
|
|
name: fallback3
|
2013-09-13 03:14:05 +08:00
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: defined-atoms:
|
2013-11-21 04:51:55 +08:00
|
|
|
# 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
|