1# RUN: yaml2obj %s -o %t.wasm 2# RUN: llvm-nm -P %t.wasm | FileCheck %s 3# 4# Test that names from the linking section override those from the name section 5# CHECK: foo T 1 3 6# CHECK-NOT: my_func_local_name 7 8--- !WASM 9FileHeader: 10 Version: 0x1 11Sections: 12 - Type: TYPE 13 Signatures: 14 - Index: 0 15 ParamTypes: [] 16 ReturnTypes: [] 17 - Type: FUNCTION 18 FunctionTypes: [ 0, 0 ] 19 - Type: CODE 20 Functions: 21 - Index: 0 22 Locals: 23 Body: 00 24 - Index: 1 25 Locals: 26 Body: 00 27 - Type: CUSTOM 28 Name: linking 29 Version: 2 30 SymbolTable: 31 - Index: 0 32 Kind: FUNCTION 33 Name: foo 34 Flags: [ VISIBILITY_HIDDEN ] 35 Function: 0 36 - Type: CUSTOM 37 Name: name 38 FunctionNames: 39 - Index: 1 40 Name: my_func_local_name 41