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 .export_name foo, bar 9 end_function 10 11# CHECK: .export_name foo, bar 12 13# CHECK-OBJ: - Type: EXPORT 14# CHECK-OBJ-NEXT: Exports: 15# CHECK-OBJ-NEXT: - Name: bar 16# CHECK-OBJ-NEXT: Kind: FUNCTION 17# CHECK-OBJ-NEXT: Index: 0 18 19# CHECK-OBJ: Name: linking 20# CHECK-OBJ-NEXT: Version: 2 21# CHECK-OBJ-NEXT: SymbolTable: 22# CHECK-OBJ-NEXT: - Index: 0 23# CHECK-OBJ-NEXT: Kind: FUNCTION 24# CHECK-OBJ-NEXT: Name: foo 25# CHECK-OBJ-NEXT: Flags: [ EXPORTED ] 26# CHECK-OBJ-NEXT: Function: 0 27