1# RUN: llvm-mc -triple=wasm32-unknown-unknown < %s | FileCheck %s 2# Check that it also comiled to object for format. 3# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -o - < %s | obj2yaml | FileCheck -check-prefix=CHECK-OBJ %s 4 5foo: 6 .globl foo 7 .functype foo () -> () 8 end_function 9 10 .section .custom_section.llvm.func_attr.custom0,"",@ 11 .int32 foo@FUNCINDEX 12 13# CHECK: .section .custom_section.llvm.func_attr.custom0,"",@ 14# CHECK-NEXT: .int32 foo@FUNCINDEX 15 16# CHECK-OBJ: - Type: CUSTOM 17# CHECK-OBJ-NEXT: Relocations: 18# CHECK-OBJ-NEXT: - Type: R_WASM_FUNCTION_INDEX_I32 19# CHECK-OBJ-NEXT: Index: 0 20# CHECK-OBJ-NEXT: Offset: 0x0 21# CHECK-OBJ-NEXT: Name: llvm.func_attr.custom0 22