mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
4d3b657b4e
This matches the CodeGen tests and makes it a little easy to run these from the command line manually. Differential Revision: https://reviews.llvm.org/D42440 llvm-svn: 323275
24 lines
606 B
LLVM
24 lines
606 B
LLVM
; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
|
|
|
|
target triple = "wasm32-unknown-unknown-wasm"
|
|
|
|
; Function with __attribute__((visibility("default")))
|
|
define void @defaultVis() #0 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; Function with __attribute__((visibility("hidden")))
|
|
define hidden void @hiddenVis() #0 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK: - Type: CUSTOM
|
|
; CHECK-NEXT: Name: linking
|
|
; CHECK-NEXT: DataSize: 0
|
|
; CHECK-NEXT: SymbolInfo:
|
|
; CHECK-NEXT: - Name: hiddenVis
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
|
; CHECK-NEXT: ...
|