49 lines · yaml
1# RUN: yaml2obj < %s | llvm-nm - | FileCheck -strict-whitespace %s2 3# Check that wasm import of functions/globals/data are displayed correctly4 5--- !WASM6FileHeader:7 Version: 0x000000018Sections:9 - Type: TYPE10 Signatures:11 - Index: 012 ParamTypes:13 - I3214 ReturnTypes:15 - I3216 - Type: IMPORT17 Imports:18 - Module: env19 Field: fimport20 Kind: FUNCTION21 SigIndex: 022 - Module: env23 Field: gimport24 Kind: GLOBAL25 GlobalType: I3226 GlobalMutable: false27 - Type: CUSTOM28 Name: linking29 Version: 230 SymbolTable:31 - Index: 032 Kind: FUNCTION33 Name: fimport34 Flags: [ UNDEFINED ]35 Function: 036 - Index: 137 Kind: GLOBAL38 Name: gimport39 Flags: [ UNDEFINED ]40 Global: 041 - Index: 242 Kind: DATA43 Name: dimport44 Flags: [ UNDEFINED ]45 46# CHECK: U dimport47# CHECK-NEXT: U fimport48# CHECK-NEXT: U gimport49