2015-04-24 23:51:45 +08:00
|
|
|
# RUN: lld -core %s %p/Inputs/undef-weak-coalesce.objtxt| FileCheck %s
|
2012-02-23 05:56:59 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test that undefined symbols preserve their attributes and merge properly
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
2012-02-23 05:56:59 +08:00
|
|
|
- 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
|
|
|
|
...
|
|
|
|
|
2013-11-15 11:12:24 +08:00
|
|
|
# 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
|