blob: 550c10cfa468ca7a91ff4c3e9fdf0421fc814e70 [file] [log] [blame]
# 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: ...