diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl b/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl index 000f96278fa..dd89f40761c 100644 --- a/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl +++ b/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl @@ -44,8 +44,14 @@ kernel void test_pointers(volatile global void *global_p, global const int4 *a) // There are two potential definitions of the function "atom_add", both are // currently disabled because the associated extension is disabled. -// expected-note@-6{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}} -// expected-note@-7{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}} +// expected-note@-6{{candidate function not viable: cannot pass pointer to address space '__global' as a pointer to address space '__local' in 1st argument}} +// expected-note@-7{{candidate function not viable: no known conversion}} +// expected-note@-8{{candidate function not viable: no known conversion}} +// expected-note@-9{{candidate function not viable: no known conversion}} +// expected-note@-10{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}} +// expected-note@-11{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}} +// expected-note@-12{{candidate unavailable as it requires OpenCL extension 'cl_khr_int64_base_atomics' to be enabled}} +// expected-note@-13{{candidate unavailable as it requires OpenCL extension 'cl_khr_int64_base_atomics' to be enabled}} #endif #if __OPENCL_C_VERSION__ < CL_VERSION_1_1 |