• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
b()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
b2()13 const char* b2() { return z2; }
14