1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc const int x = 10; 4*f4a2713aSLionel Sambuc const int y = 20; 5*f4a2713aSLionel Sambuc const volatile int z = 30; 6*f4a2713aSLionel Sambuc // CHECK-NOT: @x 7*f4a2713aSLionel Sambuc // CHECK: @z = constant i32 30 8*f4a2713aSLionel Sambuc // CHECK: @_ZL1y = internal constant i32 20 9*f4a2713aSLionel Sambuc const int& b() { return y; } 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc const char z1[] = "asdf"; 12*f4a2713aSLionel Sambuc const char z2[] = "zxcv"; 13*f4a2713aSLionel Sambuc const volatile char z3[] = "zxcv"; 14*f4a2713aSLionel Sambuc // CHECK-NOT: @z1 15*f4a2713aSLionel Sambuc // CHECK: @z3 = constant 16*f4a2713aSLionel Sambuc // CHECK: @_ZL2z2 = internal constant 17*f4a2713aSLionel Sambuc const char* b2() { return z2; } 18