[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / WebAssembly / visibility.ll
blob5bb757b28f18a605203e3fded5776d1acf1f484d
1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 ; Function with __attribute__((visibility("default")))
6 define void @defaultVis() #0 {
7 entry:
8   ret void
11 ; Function with __attribute__((visibility("hidden")))
12 define hidden void @hiddenVis() #0 {
13 entry:
14   ret void
17 ; CHECK:          SymbolTable:
18 ; CHECK-NEXT:       - Index:           0
19 ; CHECK-NEXT:         Kind:            FUNCTION
20 ; CHECK-NEXT:         Name:            defaultVis
21 ; CHECK-NEXT:         Flags:           [  ]
22 ; CHECK-NEXT:         Function:        0
23 ; CHECK-NEXT:       - Index:           1
24 ; CHECK-NEXT:         Kind:            FUNCTION
25 ; CHECK-NEXT:         Name:            hiddenVis
26 ; CHECK-NEXT:         Flags:           [ VISIBILITY_HIDDEN ]
27 ; CHECK-NEXT:         Function:        1
28 ; CHECK-NEXT: ...