bolt/deps/llvm-18.1.8/clang/test/CodeGenOpenCL/const-str-array-decay.cl

11 lines
248 B
Common Lisp
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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