[flang] Don't needlessly instantiate distinct UNSIGNED cases for FINDLOC (#120471)
[llvm-project.git] / clang / test / CodeGen / pragma-visibility.c
blob748acf11d5791c231494c5aaebee045510946151
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
3 #pragma GCC visibility push(hidden)
4 int x = 2;
5 // CHECK: @x = hidden global
7 extern int y;
8 #pragma GCC visibility pop
9 int y = 4;
10 // CHECK: @y = hidden global
12 #pragma GCC visibility push(hidden)
13 extern __attribute((visibility("default"))) int z;
14 int z = 0;
15 // CHECK: @z ={{.*}} global
16 #pragma GCC visibility pop
18 #pragma GCC visibility push(hidden)
19 void f(void) {}
20 // CHECK-LABEL: define hidden void @f
22 __attribute((visibility("default"))) void g(void);
23 void g(void) {}
24 // CHECK-LABEL: define{{.*}} void @g