]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/core/gnulinkonce-rearrange-resolve.objtxt
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / core / gnulinkonce-rearrange-resolve.objtxt
1 # RUN: lld -core %s | FileCheck %s
2
3 #
4 # Test that gnu linkonce sections are parsed and the first section selected for symbol
5 # resolution
6 #
7
8 ---
9 defined-atoms:
10   - name:            g1
11     scope:           global
12     type:            gnu-linkonce
13     references:
14       - kind:            group-child
15         target:          f1
16       - kind:            group-child
17         target:          f2
18       - kind:            group-child
19         target:          g1
20       - kind:            group-child
21         target:          d1
22   - name:            f1
23     scope:           global
24     type:            code
25   - name:            f2
26     scope:           global
27     type:            code
28   - name:            g1
29     scope:           global
30     type:            code
31   - name:            d1
32     scope:           global
33     type:            data
34 ---
35 defined-atoms:
36   - name:            g1
37     scope:           global
38     type:            gnu-linkonce
39     references:
40       - kind:            group-child
41         target:          f1
42       - kind:            group-child
43         target:          f2
44       - kind:            group-child
45         target:          g1
46       - kind:            group-child
47         target:          d1
48   - name:            f1
49     scope:           global
50     type:            code
51   - name:            f2
52     scope:           global
53     type:            code
54   - name:            g1
55     scope:           global
56     type:            code
57   - name:            d1
58     scope:           global
59     type:            data
60 ...
61
62 # CHECK: defined-atoms:
63 # CHECK:   - name:            g1
64 # CHECK:     ref-name:        [[PARENT:[a-zA-Z\.0-9_]+]]
65 # CHECK:     type:            gnu-linkonce
66 # CHECK:     references:
67 # CHECK:       - kind:            group-child
68 # CHECK:         target:          f1
69 # CHECK:       - kind:            group-child
70 # CHECK:         target:          f2
71 # CHECK:       - kind:            group-child
72 # CHECK:         target:          [[CHILD:[a-zA-Z\.0-9_]+]]
73 # CHECK:       - kind:            group-child
74 # CHECK:         target:          d1
75 # CHECK:   - name:            f1
76 # CHECK:   - name:            f2
77 # CHECK:   - name:            g1
78 # CHECK:     ref-name:        [[CHILD]]
79 # CHECK:   - name:            d1