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