• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 %s -cl-opt-disable -emit-llvm -o - -ffake-address-space-map | FileCheck %s
2
3__constant char * __constant x = "hello world";
4__constant char * __constant y = "hello world";
5
6// CHECK: unnamed_addr addrspace(3) constant
7// CHECK-NOT: addrspace(3) unnamed_addr constant
8// CHECK: @x = addrspace(3) constant i8 addrspace(3)*
9// CHECK: @y = addrspace(3) constant i8 addrspace(3)*
10