llvm-for-llvmta/test/tools/llvm-nm/wasm/extern-only.ll

24 lines
403 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown -o %t.o %s
; RUN: llvm-nm --extern-only %t.o | FileCheck %s
; Verity that hidden symbols are listed even when --extern-only is passed
define hidden i32 @foo() {
entry:
ret i32 42
}
define i32 @bar() {
entry:
ret i32 43
}
define internal i32 @baz() {
entry:
ret i32 44
}
; CHECK: 00000006 T bar
; CHECK-NOT: baz
; CHECK: 00000001 T foo