[UpdateTestChecks] Allow Lbegin_func without a leading period
[llvm-complete.git] / test / Object / wasm-relocs-and-producers.yaml
blob01ad2bb89fbf4abc5a764d8f18395c908179e34b
1 # RUN: yaml2obj %s | llvm-objdump -s - | FileCheck %s
3 # This is a regression test for an issue with the section order
4 # checker being overly strict. yaml2obj places the relocations last,
5 # but the section order checker previously checked that relocations
6 # came before the producers section, which would cause this test to
7 # fail.
9 # CHECK: Contents of section producers:
10 # CHECK: Contents of section reloc.CODE:
12 --- !WASM
13 FileHeader:
14   Version:         0x00000001
15 Sections:
16   - Type:            TYPE
17     Signatures:
18       - Index:           0
19         ReturnType:      NORESULT
20         ParamTypes:      []
21   - Type:            IMPORT
22     Imports:
23       - Module:          env
24         Field:           __linear_memory
25         Kind:            MEMORY
26         Memory:
27           Initial:         0x00000000
28       - Module:          env
29         Field:           __indirect_function_table
30         Kind:            TABLE
31         Table:
32           ElemType:        FUNCREF
33           Limits:
34             Initial:         0x00000000
35   - Type:            FUNCTION
36     FunctionTypes:   [ 0 ]
37   - Type:            CODE
38     Relocations:
39       - Type:            R_WASM_FUNCTION_INDEX_LEB
40         Index:           0
41         Offset:          0x00000004
42     Functions:
43       - Index:           0
44         Locals:          []
45         Body:            1080808080000B
46   - Type:            CUSTOM
47     Name:            linking
48     Version:         2
49     SymbolTable:
50       - Index:           0
51         Kind:            FUNCTION
52         Name:            foo
53         Flags:           [ VISIBILITY_HIDDEN ]
54         Function:        0
55   - Type:            CUSTOM
56     Name:            producers
57     Tools:
58       - Name:            clang
59         Version:         9.0.0
60 ...