llvm-for-llvmta/tools/clang/test/SemaOpenCLCXX/address_space_overloading.cl

23 lines
420 B
Common Lisp
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=clc++
// expected-no-diagnostics
struct RetGlob {
int dummy;
};
struct RetGen {
char dummy;
};
RetGlob foo(const __global int *);
RetGen foo(const __generic int *);
void kernel k() {
__global int *ArgGlob;
__generic int *ArgGen;
__local int *ArgLoc;
RetGlob TestGlob = foo(ArgGlob);
RetGen TestGen = foo(ArgGen);
TestGen = foo(ArgLoc);
}