zig/deps/lld/test/wasm/function-index.test

19 lines
588 B
Plaintext
Raw Normal View History

2018-08-05 05:47:16 +08:00
# RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
# RUN: llc -filetype=obj %p/Inputs/ret64.ll -o %t.ret64.o
# RUN: wasm-ld -r -o %t.wasm %t.ret32.o %t.ret64.o
2018-01-18 06:29:21 +08:00
# RUN: obj2yaml %t.wasm | FileCheck %s
CHECK: Sections:
CHECK: - Type: TYPE
CHECK: Signatures:
CHECK: - Index: 0
CHECK: ReturnType: I32
CHECK: ParamTypes:
CHECK: - F32
CHECK: - Index: 1
CHECK: ReturnType: I64
CHECK: ParamTypes:
CHECK: - F64
CHECK: - Type: FUNCTION
CHECK: FunctionTypes: [ 0, 1 ]