26 lines · plain
1; Ensure that symbols from module ASM are properly exported.2;3; Regression test for https://github.com/llvm/llvm-project/issues/85578.4 5; RUN: llc -mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | obj2yaml | FileCheck %s6 7module asm "test_func:"8module asm " .globl test_func"9module asm " .functype test_func (i32) -> (i32)"10module asm " .export_name test_func, test_export"11module asm " end_function"12 13; CHECK: - Type: TYPE14; CHECK-NEXT: Signatures:15; CHECK-NEXT: - Index: 016; CHECK-NEXT: ParamTypes:17; CHECK-NEXT: - I3218; CHECK-NEXT: ReturnTypes:19; CHECK-NEXT: - I3220 21; CHECK: - Type: EXPORT22; CHECK-NEXT: Exports:23; CHECK-NEXT: - Name: test_export24; CHECK-NEXT: Kind: FUNCTION25; CHECK-NEXT: Index: 026