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 4 5target triple = "wasm32-unknown-unknown-wasm" 6target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" 7 8define void @_start() { 9 call void @foo(); 10 ret void 11} 12 13declare void @foo() #0 14 15attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="customfoo" } 16 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 23