xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenOpenCL/str_literals.cl (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s
2f4a2713aSLionel Sambuc
3f4a2713aSLionel Sambuc__constant char * __constant x = "hello world";
4f4a2713aSLionel Sambuc__constant char * __constant y = "hello world";
5f4a2713aSLionel Sambuc
6*0a6a1f1dSLionel Sambuc// CHECK: unnamed_addr addrspace(3) constant
7f4a2713aSLionel Sambuc// CHECK-NOT: addrspace(3) unnamed_addr constant
8*0a6a1f1dSLionel Sambuc// CHECK: @x = addrspace(3) constant i8 addrspace(3)*
9*0a6a1f1dSLionel Sambuc// CHECK: @y = addrspace(3) constant i8 addrspace(3)*
10