[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git] / llvm / test / ObjectYAML / wasm / import_section.yaml
blobe4c06368f6250f92669afb22ce70c22ddc8c3c29
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           - I32
11         ReturnTypes:
12           - I32
13   - Type:            IMPORT
14     Imports:
15       - Module:          foo
16         Field:           imported_function
17         Kind:            FUNCTION
18         SigIndex:        0
19       - Module:          fiz
20         Field:           imported_global
21         Kind:            GLOBAL
22         GlobalType:      I32
23         GlobalMutable:   false
24       - Module:          foo
25         Field:           imported_memory
26         Kind:            MEMORY
27         Memory:
28           Flags:           [ HAS_MAX ]
29           Minimum:         0x00000010
30           Maximum:         0x00000011
31       - Module:          foo
32         Field:           imported_table
33         Kind:            TABLE
34         Table:
35           Index:         0
36           ElemType:      FUNCREF
37           Limits:
38             Flags:           [ HAS_MAX ]
39             Minimum:         0x00000020
40             Maximum:         0x00000022
41 ...
42 # CHECK: --- !WASM
43 # CHECK: FileHeader:
44 # CHECK:   Version:           0x1
45 # CHECK: Sections:
46 # CHECK:   - Type:            IMPORT
47 # CHECK:     Imports:
48 # CHECK:       - Module:          foo
49 # CHECK:         Field:           imported_function
50 # CHECK:         Kind:            FUNCTION
51 # CHECK:         SigIndex:        0
52 # CHECK:       - Module:          fiz
53 # CHECK:         Field:           imported_global
54 # CHECK:         Kind:            GLOBAL
55 # CHECK:         GlobalType:      I32
56 # CHECK:         GlobalMutable:   false
57 # CHECK:       - Module:          foo
58 # CHECK:         Field:           imported_memory
59 # CHECK:         Kind:            MEMORY
60 # CHECK:         Memory:
61 # CHECK:           Flags:           [ HAS_MAX ]
62 # CHECK:           Minimum:         0x10
63 # CHECK:           Maximum:         0x11
64 # CHECK:       - Module:          foo
65 # CHECK:         Field:           imported_table
66 # CHECK:         Kind:            TABLE
67 # CHECK:         Table:
68 # CHECK:           ElemType:      FUNCREF
69 # CHECK:           Limits:
70 # CHECK:             Flags:           [ HAS_MAX ]
71 # CHECK:             Minimum:         0x20
72 # CHECK:             Maximum:         0x22
73 # CHECK: ...