aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenOpenCL/const-str-array-decay.cl
blob: 0bffe92d6565dce8024c23875598c5e560ebe4fa (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 %s -emit-llvm -o - -ffake-address-space-map | FileCheck %s

int test_func(constant char* foo);

kernel void str_array_decy() {
  test_func("Test string literal");
}

// CHECK: ptr addrspace(2) noundef
// CHECK-NOT: addrspacecast