22 lines · plain
1# RUN: llvm-mc -mattr=+reference-types -triple=wasm32-unknown-unknown -filetype=obj -o - < %s | obj2yaml | FileCheck %s2 3.globl __indirect_function_table4.tabletype __indirect_function_table, funcref5 6.globl obtain_funcref_from_table_index7 8obtain_funcref_from_table_index:9 .functype obtain_funcref_from_table_index (i32) -> (funcref)10 local.get 011 table.get __indirect_function_table12 end_function13 14# CHECK: Sections:15# CHECK-NEXT: - Type: TYPE16# CHECK-NEXT: Signatures:17# CHECK-NEXT: - Index: 018# CHECK-NEXT: ParamTypes:19# CHECK-NEXT: - I3220# CHECK-NEXT: ReturnTypes:21# CHECK-NEXT: - FUNCREF22