// RUN: %clang_cc1 -no-opaque-pointers %s -cl-opt-disable -emit-llvm -o - -ffake-address-space-map | FileCheck %s
__constant char *__constant x = "hello world";
__constant char *__constant y = "hello world";
// CHECK: unnamed_addr addrspace constant{{.*}}"hello world\00"
// CHECK-NOT: addrspace unnamed_addr constant
// CHECK: @x = {{ ?}}addrspace constant i8 addrspace *
// CHECK: @y = {{ ?}}addrspace constant i8 addrspace *
// CHECK: unnamed_addr addrspace constant{{.*}}"f\00"
void f {
//CHECK: store i8 addrspace * {{.*}}, i8 addrspace **
constant const char *f3 = __func__;
}