Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaOpenCLCXX/address_space_overloading.cl @ 176:de4ac79aef9d
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 17:13:11 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// 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); }