1# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s 2 3# Check that wasm import of functions/globals/data are displayed correctly 4 5--- !WASM 6FileHeader: 7 Version: 0x00000001 8Sections: 9 - Type: TYPE 10 Signatures: 11 - Index: 0 12 ParamTypes: 13 - I32 14 ReturnTypes: 15 - I32 16 - Type: IMPORT 17 Imports: 18 - Module: env 19 Field: fimport 20 Kind: FUNCTION 21 SigIndex: 0 22 - Module: env 23 Field: gimport 24 Kind: GLOBAL 25 GlobalType: I32 26 GlobalMutable: false 27 - Type: CUSTOM 28 Name: linking 29 Version: 2 30 SymbolTable: 31 - Index: 0 32 Kind: FUNCTION 33 Name: fimport 34 Flags: [ UNDEFINED ] 35 Function: 0 36 - Index: 1 37 Kind: GLOBAL 38 Name: gimport 39 Flags: [ UNDEFINED ] 40 Global: 0 41 - Index: 2 42 Kind: DATA 43 Name: dimport 44 Flags: [ UNDEFINED ] 45 46# CHECK: U dimport 47# CHECK-NEXT: U fimport 48# CHECK-NEXT: U gimport 49