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