39 lines · c
1// RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm -o - %s | FileCheck %s2 3__private_extern__ const int I;4__private_extern__ const int J = 927;5 6__private_extern__ const int K;7const int K = 37;8 9const int L = 10;10__private_extern__ const int L;11 12__private_extern__ int M;13int M = 20;14 15__private_extern__ int N;16int N;17 18__private_extern__ int O;19int O=1;20 21__private_extern__ int P;22extern int P;23 24void bar(int);25 26void foo(void) {27 bar(I);28}29 30// CHECK: @J = hidden constant31// CHECK: @K = hidden constant32// CHECK: @L ={{.*}} constant33// CHECK: @M = hidden global34// CHECK: @O = hidden global35// CHECK: @I = external hidden36// CHECK: @N = hidden global37// CHECK-NOT: @P38 39