Home | History | Annotate | Download | only in CodeGen
      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;
      8 const int K = 37;
      9 
     10 const int L = 10;
     11 __private_extern__ const int L;
     12 
     13 __private_extern__ int M;
     14 int M = 20;
     15 
     16 __private_extern__ int N;
     17 int N;
     18 
     19 __private_extern__ int O;
     20 int O=1;
     21 
     22 __private_extern__ int P;
     23 extern int P;
     24 
     25 void bar(int);
     26 
     27 void 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