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
11 # CHECK: .export_name foo, bar
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
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