41 lines · yaml
1# RUN: yaml2obj %s -o %t.wasm2# RUN: llvm-nm -P %t.wasm | FileCheck %s3#4# Test that names from the linking section override those from the name section5# CHECK: foo T 1 36# CHECK-NOT: my_func_local_name7 8--- !WASM9FileHeader:10 Version: 0x111Sections:12 - Type: TYPE13 Signatures:14 - Index: 015 ParamTypes: []16 ReturnTypes: []17 - Type: FUNCTION18 FunctionTypes: [ 0, 0 ]19 - Type: CODE20 Functions:21 - Index: 022 Locals:23 Body: 0024 - Index: 125 Locals:26 Body: 0027 - Type: CUSTOM28 Name: linking29 Version: 230 SymbolTable:31 - Index: 032 Kind: FUNCTION33 Name: foo34 Flags: [ VISIBILITY_HIDDEN ]35 Function: 036 - Type: CUSTOM37 Name: name38 FunctionNames:39 - Index: 140 Name: my_func_local_name41