1 ; RUN: llc -filetype=obj -wasm-keep-registers %s -o - | llvm-readobj --symbols | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"
13 ; CHECK-NEXT: Symbol {
14 ; CHECK-NEXT: Name: foo
15 ; CHECK-NEXT: Type: FUNCTION (0x0)
16 ; CHECK-NEXT: Flags [ (0x20)
17 ; CHECK-NEXT: EXPORTED (0x20)
19 ; CHECK-NEXT: ElementIndex: 0x0