1 ; RUN: llvm-as %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"
6 target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
8 define void @_start() {
13 declare void @foo() #0
15 attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="customfoo" }
17 ; CHECK: - Type: IMPORT
18 ; CHECK-NEXT: Imports:
19 ; CHECK-NEXT: - Module: bar
20 ; CHECK-NEXT: Field: customfoo
21 ; CHECK-NEXT: Kind: FUNCTION
22 ; CHECK-NEXT: SigIndex: 0