xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenOpenCL/const-str-array-decay.cl (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambucint test_func(constant char* foo);
4*0a6a1f1dSLionel Sambuc
5*0a6a1f1dSLionel Sambuckernel void str_array_decy() {
6*0a6a1f1dSLionel Sambuc  test_func("Test string literal");
7*0a6a1f1dSLionel Sambuc}
8*0a6a1f1dSLionel Sambuc
9*0a6a1f1dSLionel Sambuc// CHECK: i8 addrspace(3)* getelementptr inbounds ([20 x i8] addrspace(3)*
10*0a6a1f1dSLionel Sambuc// CHECK-NOT: addrspacecast
11*0a6a1f1dSLionel Sambuc
12