You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
555 B
22 lines
555 B
4 months ago
|
; RUN: llc -filetype=obj %s -o %t.o
|
||
|
; RUN: wasm-ld --allow-undefined -o %t.wasm %t.o
|
||
|
; RUN: obj2yaml %t.wasm | FileCheck %s
|
||
|
|
||
|
target triple = "wasm32-unknown-unknown-wasm"
|
||
|
|
||
|
define void @_start() {
|
||
|
call void @foo();
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
declare void @foo() #0
|
||
|
|
||
|
attributes #0 = { "wasm-import-module"="bar" }
|
||
|
|
||
|
; CHECK: - Type: IMPORT
|
||
|
; CHECK-NEXT: Imports:
|
||
|
; CHECK-NEXT: - Module: bar
|
||
|
; CHECK-NEXT: Field: foo
|
||
|
; CHECK-NEXT: Kind: FUNCTION
|
||
|
; CHECK-NEXT: SigIndex: 0
|