1 # RUN: llvm-mc -triple=wasm32 < %s | FileCheck %s -check-prefix=CHECK-ASM
2 # RUN: llvm-mc -triple=wasm32 -filetype=obj -o - < %s | obj2yaml | FileCheck %s
5 .functype plain () -> ()
8 .functype test () -> ()
13 .import_module foo, bar
16 # CHECK-ASM: .import_module foo, bar
17 # CHECK-ASM: .import_name foo, qux
19 # CHECK: - Type: IMPORT
20 # CHECK-NEXT: Imports:
21 # CHECK: - Module: bar
22 # CHECK-NEXT: Field: qux
23 # CHECK-NEXT: Kind: FUNCTION
25 # CHECK: - Module: env
26 # CHECK-NEXT: Field: plain
27 # CHECK-NEXT: Kind: FUNCTION
29 # CHECK: - Type: CUSTOM
31 # CHECK-NEXT: Flags: [ UNDEFINED, EXPLICIT_NAME ]
34 # CHECK-NEXT: Flags: [ UNDEFINED ]