1 # RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -o %t.o < %s
2 # RUN: obj2yaml %t.o | FileCheck %s
5 .functype weak_function () -> (i32)
9 i32.load weak_external_data
12 .weak weak_external_data
15 # CHECK-NEXT: - Index: 0
16 # CHECK-NEXT: Kind: FUNCTION
17 # CHECK-NEXT: Name: weak_function
18 # CHECK-NEXT: Flags: [ BINDING_WEAK, VISIBILITY_HIDDEN ]
19 # CHECK-NEXT: Function: 0
20 # CHECK-NEXT: - Index: 1
21 # CHECK-NEXT: Kind: DATA
22 # CHECK-NEXT: Name: weak_external_data
23 # CHECK-NEXT: Flags: [ BINDING_WEAK, UNDEFINED ]