2011-12-18 16:27:59 +08:00
|
|
|
# RUN: lld-core %s | FileCheck %s
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test that a tentative definition and a regular global are merged into
|
|
|
|
# one regular global
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
atoms:
|
|
|
|
- name: _foo
|
2012-01-11 09:06:19 +08:00
|
|
|
definition: regular
|
|
|
|
merge: asTentative
|
2012-01-05 07:58:17 +08:00
|
|
|
scope: global
|
2011-12-18 16:27:59 +08:00
|
|
|
type: zero-fill
|
|
|
|
size: 4
|
|
|
|
---
|
|
|
|
atoms:
|
|
|
|
- name: _foo
|
|
|
|
definition: regular
|
2012-01-05 07:58:17 +08:00
|
|
|
scope: global
|
2011-12-18 16:27:59 +08:00
|
|
|
type: data
|
|
|
|
content: [ 00, 00, 00, 00 ]
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
|
|
# CHECK: name: _foo
|
2012-01-11 09:06:19 +08:00
|
|
|
# CHECK-NOT: merge: asTentative
|