[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / llvm / test / tools / llvm-objdump / wasm / no-codesec.test
blobe66a8ddd8a0663aa0993544139d7dd57dc123848
1 ## Test that sections that use function indices (e.g. name) work without the code section
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objdump -h %t | FileCheck %s
5 # CHECK: Sections:
6 # CHECK-NEXT: Idx Name          Size     VMA      Type
7 # CHECK-NEXT:   0 TYPE          00000004 00000000 
8 # CHECK-NEXT:   1 FUNCTION      00000002 00000000 
9 # CHECK-NEXT:   2 name          00000008 00000000
10   
11 --- !WASM
12 FileHeader:
13   Version: 0x00000001
14 Sections:
15   - Type: TYPE
16     Signatures:
17       - Index: 0
18         ParamTypes: []
19         ReturnTypes: []
20   - Type: FUNCTION
21     FunctionTypes: [ 0 ]
22   - Type: CUSTOM
23     Name: name
24     FunctionNames:
25      - Index:          0
26        Name:           foo