1; RUN: llvm-as %s -o %t.o 2; RUN: wasm-ld %t.o %t.o -o %t.wasm -r 3; RUN: llvm-readobj --symbols %t.wasm | FileCheck %s 4 5target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" 6target triple = "wasm32-unknown-unknown-wasm" 7 8define weak void @f() { 9 ret void 10} 11 12; CHECK: Symbol { 13; CHECK-NEXT: Name: f 14; CHECK-NEXT: Type: FUNCTION (0x0) 15; CHECK-NEXT: Flags [ (0x1) 16; CHECK-NEXT: BINDING_WEAK (0x1) 17; CHECK-NEXT: ] 18; CHECK-NEXT: ElementIndex: 0x0 19; CHECK-NEXT: } 20