1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
3 #pragma GCC visibility push(hidden)
5 // CHECK: @x = hidden global
8 #pragma GCC visibility pop
10 // CHECK: @y = hidden global
12 #pragma GCC visibility push(hidden)
13 extern __attribute((visibility("default"))) int z
;
15 // CHECK: @z ={{.*}} global
16 #pragma GCC visibility pop
18 #pragma GCC visibility push(hidden)
20 // CHECK-LABEL: define hidden void @f
22 __attribute((visibility("default"))) void g(void);
24 // CHECK-LABEL: define{{.*}} void @g