forked from OSchip/llvm-project
31 lines
573 B
Plaintext
31 lines
573 B
Plaintext
# RUN: lld -core %s | FileCheck %s
|
|
|
|
#
|
|
# Test that weak definitions are coalesced away in favor of a regular definition
|
|
#
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: _foo
|
|
merge: as-weak
|
|
scope: global
|
|
type: data
|
|
---
|
|
defined-atoms:
|
|
- name: _foo
|
|
scope: global
|
|
type: data
|
|
---
|
|
defined-atoms:
|
|
- name: _foo
|
|
merge: as-weak
|
|
scope: global
|
|
type: data
|
|
...
|
|
|
|
|
|
# CHECK: name: _foo
|
|
# CHECK-NOT: merge: as-weak
|
|
# CHECK-NOT: name: _foo
|
|
# CHECK: ...
|