68 lines · yaml
1# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s2 3# Check that wasm exports of functions/globals/data are displayed correctly4 5--- !WASM6FileHeader:7 Version: 0x000000018Sections:9 - Type: TYPE10 Signatures:11 - Index: 012 ParamTypes:13 - I3214 ReturnTypes:15 - I3216 - Type: FUNCTION17 FunctionTypes: [ 0 ]18 - Type: GLOBAL19 Globals:20 - Index: 021 Type: I3222 Mutable: false23 InitExpr:24 Opcode: I64_CONST25 Value: 3226 - Type: CODE27 Functions:28 - Index: 029 Locals:30 Body: 0031 - Type: DATA32 Segments:33 - SectionOffset: 634 InitFlags: 035 Offset:36 Opcode: I32_CONST37 Value: 038 Content: '616263'39 - Type: CUSTOM40 Name: linking41 Version: 242 SymbolTable:43 - Index: 044 Kind: FUNCTION45 Name: fexport46 Flags: [ ]47 Function: 048 - Index: 149 Kind: GLOBAL50 Name: gexport51 Flags: [ ]52 Global: 053 - Index: 254 Kind: DATA55 Name: dexport56 Flags: [ ]57 Segment: 058 Size: 359 SegmentInfo:60 - Index: 061 Name: .rodata.constantData62 Alignment: 163 Flags: [ ]64 65# CHECK: 00000000 D dexport66# CHECK-NEXT: 00000001 T fexport67# CHECK-NEXT: 00000001 D gexport68