Mercurial > hg > CbC > CbC_llvm
view clang/test/Parser/opencl-cl20.cl @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 -DCL20 #ifdef CL20 // expected-no-diagnostics #endif __generic int * __generic_test(__generic int *arg) { __generic int *var; return var; } #ifndef CL20 // expected-error@-5 {{OpenCL C version 1.0 does not support the '__generic' type qualifier}} // expected-error@-6 {{OpenCL C version 1.0 does not support the '__generic' type qualifier}} // expected-error@-6 {{OpenCL C version 1.0 does not support the '__generic' type qualifier}} #endif generic int * generic_test(generic int *arg) { generic int *var; return var; } #ifndef CL20 // expected-error@-5 {{OpenCL C version 1.0 does not support the 'generic' type qualifier}} // expected-error@-6 {{OpenCL C version 1.0 does not support the 'generic' type qualifier}} // expected-error@-6 {{OpenCL C version 1.0 does not support the 'generic' type qualifier}} #endif