llvm-project/lld/test/core/undef-weak-coalesce.objtxt

73 lines
2.3 KiB
Plaintext

# RUN: lld -core %s | FileCheck %s
#
# Test that undefined symbols preserve their attributes and merge properly
#
---
undefined-atoms:
- name: regular_func
can-be-null: never
- name: weak_import_func
can-be-null: at-runtime
- name: weak_func
can-be-null: at-buildtime
- name: bar1
can-be-null: never
- name: bar2
can-be-null: at-runtime
- name: bar3
can-be-null: at-buildtime
- name: bar4
can-be-null: never
- name: bar5
can-be-null: at-runtime
- name: bar6
can-be-null: at-buildtime
- name: bar7
can-be-null: never
- name: bar8
can-be-null: at-runtime
- name: bar9
can-be-null: at-buildtime
---
undefined-atoms:
- name: bar1
can-be-null: never
- name: bar2
can-be-null: at-runtime
- name: bar3
can-be-null: at-buildtime
- name: bar4
can-be-null: at-runtime
- name: bar5
can-be-null: at-buildtime
- name: bar6
can-be-null: never
- name: bar7
can-be-null: at-buildtime
- name: bar8
can-be-null: never
- name: bar9
can-be-null: at-runtime
...
# CHECK: - name: regular_func
# CHECK-NEXT: - name: weak_import_func
# CHECK-NEXT: can-be-null: at-runtime
# CHECK-NEXT: - name: weak_func
# CHECK-NEXT: can-be-null: at-buildtime
# CHECK-NEXT: - name: bar1
# CHECK-NEXT: - name: bar2
# CHECK-NEXT: can-be-null: at-runtime
# CHECK-NEXT: - name: bar3
# CHECK-NEXT: can-be-null: at-buildtime
# CHECK-NEXT: - name: bar4
# CHECK-NEXT: - name: bar5
# CHECK-NEXT: can-be-null: at-runtime
# CHECK-NEXT: - name: bar7
# CHECK-NEXT: - name: bar6
# CHECK-NEXT: - name: bar8
# CHECK-NEXT: - name: bar9
# CHECK-NEXT: can-be-null: at-runtime