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

94 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: name: weak_import_func
# CHECK: can-be-null: at-runtime
# CHECK: name: weak_func
# CHECK: can-be-null: at-buildtime
# CHECK: name: bar1
# CHECK: name: bar2
# CHECK: can-be-null: at-runtime
# CHECK: name: bar3
# CHECK: can-be-null: at-buildtime
# CHECK: name: bar4
# CHECK: name: bar5
# CHECK: can-be-null: at-runtime
# CHECK: name: bar7
# CHECK: name: bar6
# CHECK: name: bar8
# CHECK: name: bar9
# CHECK: can-be-null: at-runtime
# CHECK: ...