[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / ObjectYAML / wasm / weak_symbols.yaml
blobed39a7d190f48395784e9a6abd7d6d973beb1d04
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
2 --- !WASM
3 FileHeader:
4   Version:         0x00000001
5 Sections:
6   - Type:            TYPE
7     Signatures:
8       - Index:           0
9         ParamTypes:      []
10         ReturnTypes:
11           - I32
12   - Type:            FUNCTION
13     FunctionTypes:   [ 0, 0 ]
14   - Type:            GLOBAL
15     Globals:
16       - Index:       0
17         Type:        I32
18         Mutable:     false
19         InitExpr:
20           Opcode:          I32_CONST
21           Value:           1
22   - Type:            EXPORT
23     Exports:
24       - Name:            function_export
25         Kind:            FUNCTION
26         Index:           1
27       - Name:            global_export
28         Kind:            GLOBAL
29         Index:           0
30   - Type:            CODE
31     Functions:
32       - Index:           0
33         Locals:
34         Body:            00
35       - Index:           1
36         Locals:
37         Body:            00
38   - Type:            CUSTOM
39     Name:            linking
40     Version:         2
41     SymbolTable:
42       - Index:           0
43         Kind:            FUNCTION
44         Name:            function_export
45         Flags:           [ BINDING_WEAK ]
46         Function:        0
47       - Index:           1
48         Kind:            GLOBAL
49         Name:            global_export
50         Flags:           [ BINDING_WEAK ]
51         Global:          0
52 ...
53 # CHECK: --- !WASM
54 # CHECK: FileHeader:
55 # CHECK:   Version:           0x1
56 # CHECK: Sections:
57 # CHECK:   - Type:            EXPORT
58 # CHECK:     Exports:
59 # CHECK:       - Name:            function_export
60 # CHECK:         Kind:            FUNCTION
61 # CHECK:         Index:           1
62 # CHECK:       - Name:            global_export
63 # CHECK:         Kind:            GLOBAL
64 # CHECK:         Index:           0
65 # CHECK:   - Type:            CUSTOM
66 # CHECK:     Name:            linking
67 # CHECK:     SymbolTable:
68 # CHECK:      - Index:           0
69 # CHECK:        Kind:            FUNCTION
70 # CHECK:        Name:            function_export
71 # CHECK:        Flags:           [ BINDING_WEAK ]
72 # CHECK:        Function:        0
73 # CHECK:      - Index:           1
74 # CHECK:        Kind:            GLOBAL
75 # CHECK:        Name:            global_export
76 # CHECK:        Flags:           [ BINDING_WEAK ]
77 # CHECK:        Global:          0