1# RUN: yaml2obj %s -o %t.o 2# RUN: llvm-nm --print-size %t.o | FileCheck %s --strict-whitespace 3# RUN: llvm-nm -S %t.o | FileCheck %s --strict-whitespace 4 5--- !WASM 6FileHeader: 7 Version: 0x1 8Sections: 9 - Type: TYPE 10 Signatures: 11 - Index: 0 12 ParamTypes: [] 13 ReturnTypes: [] 14 - Type: FUNCTION 15 FunctionTypes: [ 0 ] 16 - Type: CODE 17 Functions: 18 - Index: 0 19 Locals: 20 Body: 200008808080800041000B 21 - Type: DATA 22 Segments: 23 - SectionOffset: 6 24 InitFlags: 0 25 Offset: 26 Opcode: I32_CONST 27 Value: 0 28 Content: '00000000' 29 - Type: CUSTOM 30 Name: linking 31 Version: 2 32 SymbolTable: 33 - Index: 0 34 Kind: FUNCTION 35 Name: a_func 36 Flags: [ ] 37 Function: 0 38 - Index: 1 39 Kind: DATA 40 Name: a_data_symbol 41 Flags: [ ] 42 Segment: 0 43 Size: 32 44 45# CHECK: 00000000 00000020 D a_data_symbol 46# CHECK: 00000001 0000000d T a_func 47