llvm-project/clang/test/CodeGenOpenCL/const-str-array-decay.cl
Sergei Barannikov cc7dc90481 [test] Fix const-str-array-decay.cl failure on PowerPC
D150520 converted the test to use opaque pointers. The update version
fails on PowerPC because of different return type of the function.
This patch resolves the failure by removing the return type check;
it also makes the test look more like it was before the conversion to
prevent other potential issues caused by ABI differences across targets.
2023-05-15 19:56:28 +03:00

11 lines
248 B
Common Lisp

// 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