1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
11 declare void @foo() #0
14 attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="qux" }
16 ; CHECK: - Type: IMPORT
17 ; CHECK-NEXT: Imports:
18 ; CHECK: - Module: bar
19 ; CHECK-NEXT: Field: qux
20 ; CHECK-NEXT: Kind: FUNCTION
22 ; CHECK: - Module: env
23 ; CHECK-NEXT: Field: plain
24 ; CHECK-NEXT: Kind: FUNCTION
26 ; CHECK: - Type: CUSTOM
28 ; CHECK-NEXT: Flags: [ UNDEFINED, EXPLICIT_NAME ]
31 ; CHECK-NEXT: Flags: [ UNDEFINED ]