xref: /llvm-project/clang/test/CodeGen/private-extern.c (revision 74742147ee27659dc3b0bc713d61ea9218bf29d0)
1 // RUN: %clang_cc1  -fvisibility=default -emit-llvm -o - %s | FileCheck %s
2 
3 // CHECK-DAG: @g0 = external hidden constant i32
4 // CHECK-DAG: @g1 = hidden constant i32 1
5 
6 __private_extern__ const int g0;
7 __private_extern__ const int g1 = 1;
8 
f0(void)9 int f0(void) {
10   return g0;
11 }
12