mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 15:16:08 +00:00

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.
11 lines
248 B
Common Lisp
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
|