brintos

brintos / llvm-project-archived public Read only

0
0
Text · 403 B · 46fecba Raw
24 lines · plain
1; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown -o %t.o %s2; RUN: llvm-nm --extern-only %t.o | FileCheck %s3 4; Verity that hidden symbols are listed even when --extern-only is passed5 6define hidden i32 @foo() {7entry:8  ret i32 429}10 11define i32 @bar() {12entry:13  ret i32 4314}15 16define internal i32 @baz() {17entry:18  ret i32 4419}20 21; CHECK: 00000006 T bar22; CHECK-NOT: baz23; CHECK: 00000001 T foo24