llvm-project/clang/test/CodeGenOpenCL/const-str-array-decay.cl

12 lines
328 B
Common Lisp

// RUN: %clang_cc1 -no-opaque-pointers %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: i8 addrspace(2)* noundef getelementptr inbounds ([20 x i8], [20 x i8] addrspace(2)*
// CHECK-NOT: addrspacecast