]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/core/weak-coalesce.objtxt
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / core / weak-coalesce.objtxt
1 # RUN: lld -core %s | FileCheck %s
2
3 #
4 # Test that weak definitions are coalesced away in favor of a regular definition
5 #
6
7 ---
8 defined-atoms:
9     - name:         _foo
10       merge:        as-weak
11       scope:        global
12       type:         data
13 ---
14 defined-atoms:
15     - name:         _foo
16       scope:        global
17       type:         data
18 ---
19 defined-atoms:
20     - name:         _foo
21       merge:        as-weak
22       scope:        global
23       type:         data
24 ...
25
26
27 # CHECK:       name: _foo
28 # CHECK-NOT:   merge: as-weak
29 # CHECK-NOT:   name: _foo
30 # CHECK:       ...