Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
      2 
      3 const int x = 10;
      4 const int y = 20;
      5 // CHECK-NOT: @x
      6 // CHECK: @_ZL1y = internal constant i32 20
      7 const int& b() { return y; }
      8 
      9 const char z1[] = "asdf";
     10 const char z2[] = "zxcv";
     11 // CHECK-NOT: @z1
     12 // CHECK: @_ZL2z2 = internal constant
     13 const char* b2() { return z2; }
     14