CWG 1394: Incomplete types as parameters of deleted functions
[llvm-project.git] / llvm / test / Object / wasm-relocs-and-producers.yaml
bloba96aa1fece1416e295ba797a8ce50da14f0d46c6
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         ParamTypes:      []
20         ReturnTypes:     []
21   - Type:            IMPORT
22     Imports:
23       - Module:          env
24         Field:           __linear_memory
25         Kind:            MEMORY
26         Memory:
27           Minimum:         0x00000000
28       - Module:          env
29         Field:           __indirect_function_table
30         Kind:            TABLE
31         Table:
32           Index:           0
33           ElemType:        FUNCREF
34           Limits:
35             Minimum:         0x00000000
36   - Type:            FUNCTION
37     FunctionTypes:   [ 0 ]
38   - Type:            CODE
39     Relocations:
40       - Type:            R_WASM_FUNCTION_INDEX_LEB
41         Index:           0
42         Offset:          0x00000004
43     Functions:
44       - Index:           0
45         Locals:          []
46         Body:            1080808080000B
47   - Type:            CUSTOM
48     Name:            linking
49     Version:         2
50     SymbolTable:
51       - Index:           0
52         Kind:            FUNCTION
53         Name:            foo
54         Flags:           [ VISIBILITY_HIDDEN ]
55         Function:        0
56   - Type:            CUSTOM
57     Name:            producers
58     Tools:
59       - Name:            clang
60         Version:         9.0.0
61 ...