brintos

brintos / llvm-project-archived public Read only

0
0
Text · 655 B · c1398f9 Raw
23 lines · plain
1; RUN: llvm-as %s -o %t.o2; RUN: wasm-ld --allow-undefined -o %t.wasm %t.o3; RUN: obj2yaml %t.wasm | FileCheck %s4 5target triple = "wasm32-unknown-unknown-wasm"6target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"7 8define void @_start() {9  call void @foo();10  ret void11}12 13declare void @foo() #014 15attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="customfoo" }16 17; CHECK:        - Type:            IMPORT18; CHECK-NEXT:     Imports:19; CHECK-NEXT:       - Module:          bar20; CHECK-NEXT:         Field:           customfoo21; CHECK-NEXT:         Kind:            FUNCTION22; CHECK-NEXT:         SigIndex:        023