1 ; RUN: llc -filetype=obj %s -o %t.o
2 ; RUN: wasm-ld --allow-undefined -o %t.wasm %t.o
3 ; RUN: obj2yaml %t.wasm | FileCheck %s
5 target triple = "wasm32-unknown-unknown-wasm"
7 define void @_start() {
13 declare void @foo() #0
14 declare void @qux() #1
16 attributes #0 = { "wasm-import-module"="bar" }
17 attributes #1 = { "wasm-import-module"="" }
19 ; CHECK: - Type: IMPORT
20 ; CHECK-NEXT: Imports:
21 ; CHECK-NEXT: - Module: bar
22 ; CHECK-NEXT: Field: foo
23 ; CHECK-NEXT: Kind: FUNCTION
24 ; CHECK-NEXT: SigIndex: 0
25 ; CHECK-NEXT: - Module: ''
26 ; CHECK-NEXT: Field: qux
27 ; CHECK-NEXT: Kind: FUNCTION
28 ; CHECK-NEXT: SigIndex: 0