27 lines · plain
1## Test that sections that use function indices (e.g. name) work without the code section2# RUN: yaml2obj %s -o %t3# RUN: llvm-objdump -h %t | FileCheck %s4 5# CHECK: Sections:6# CHECK-NEXT: Idx Name Size VMA Type7# CHECK-NEXT: 0 TYPE 00000004 0000000e8# CHECK-NEXT: 1 FUNCTION 00000002 000000189# CHECK-NEXT: 2 name 00000008 0000002010 11--- !WASM12FileHeader:13 Version: 0x0000000114Sections:15 - Type: TYPE16 Signatures:17 - Index: 018 ParamTypes: []19 ReturnTypes: []20 - Type: FUNCTION21 FunctionTypes: [ 0 ]22 - Type: CUSTOM23 Name: name24 FunctionNames:25 - Index: 026 Name: foo27