47 lines · plain
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-nm --print-size %t.o | FileCheck %s --strict-whitespace3# RUN: llvm-nm -S %t.o | FileCheck %s --strict-whitespace4 5--- !WASM6FileHeader:7 Version: 0x18Sections:9 - Type: TYPE10 Signatures:11 - Index: 012 ParamTypes: []13 ReturnTypes: []14 - Type: FUNCTION15 FunctionTypes: [ 0 ]16 - Type: CODE17 Functions:18 - Index: 019 Locals:20 Body: 200008808080800041000B21 - Type: DATA22 Segments:23 - SectionOffset: 624 InitFlags: 025 Offset:26 Opcode: I32_CONST27 Value: 028 Content: '00000000'29 - Type: CUSTOM30 Name: linking31 Version: 232 SymbolTable:33 - Index: 034 Kind: FUNCTION35 Name: a_func36 Flags: [ ]37 Function: 038 - Index: 139 Kind: DATA40 Name: a_data_symbol41 Flags: [ ]42 Segment: 043 Size: 3244 45# CHECK: 00000000 00000020 D a_data_symbol46# CHECK: 00000001 0000000d T a_func47