llvm-project/clang/test/CodeGenOpenCL/const-str-array-decay.cl
Sergei Barannikov f46b0e6d75 [clang] Convert a few tests to opaque pointers
Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D150520
2023-05-14 21:00:15 +03:00

10 lines
249 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: call i32 @test_func(ptr addrspace(2) noundef @{{.*}})