1// RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm -o - %s | FileCheck %s
2// rdar://9609649
3
4__private_extern__ const int I;
5__private_extern__ const int J = 927;
6
7__private_extern__ const int K;
8const int K = 37;
9
10const int L = 10;
11__private_extern__ const int L;
12
13__private_extern__ int M;
14int M = 20;
15
16__private_extern__ int N;
17int N;
18
19__private_extern__ int O;
20int O=1;
21
22__private_extern__ int P;
23extern int P;
24
25void bar(int);
26
27void foo() {
28  bar(I);
29}
30
31// CHECK: @J = hidden constant
32// CHECK: @K = hidden constant
33// CHECK: @L = constant
34// CHECK: @M = hidden global
35// CHECK: @O = hidden global
36// CHECK: @I = external hidden
37// CHECK: @N = common hidden global
38// CHECK-NOT: @P
39
40