Index: cfe/trunk/test/SemaOpenCL/cl20-device-side-enqueue.cl =================================================================== --- cfe/trunk/test/SemaOpenCL/cl20-device-side-enqueue.cl +++ cfe/trunk/test/SemaOpenCL/cl20-device-side-enqueue.cl @@ -212,7 +212,7 @@ #pragma OPENCL EXTENSION cl_khr_subgroups : enable -kernel void foo(global int *buf) +kernel void foo(global unsigned int *buf) { ndrange_t n; buf[0] = get_kernel_max_sub_group_size_for_ndrange(n, ^(){}); @@ -220,7 +220,7 @@ buf[0] = get_kernel_max_sub_group_size_for_ndrange(n, 1); // expected-error{{illegal call to 'get_kernel_max_sub_group_size_for_ndrange', expected block argument type}} } -kernel void bar(global int *buf) +kernel void bar(global unsigned int *buf) { __private ndrange_t n; buf[0] = get_kernel_sub_group_count_for_ndrange(n, ^(){}); @@ -230,13 +230,13 @@ #pragma OPENCL EXTENSION cl_khr_subgroups : disable -kernel void foo1(global int *buf) +kernel void foo1(global unsigned int *buf) { ndrange_t n; buf[0] = get_kernel_max_sub_group_size_for_ndrange(n, ^(){}); // expected-error {{use of declaration 'get_kernel_max_sub_group_size_for_ndrange' requires cl_khr_subgroups extension to be enabled}} } -kernel void bar1(global int *buf) +kernel void bar1(global unsigned int *buf) { ndrange_t n; buf[0] = get_kernel_sub_group_count_for_ndrange(n, ^(){}); // expected-error {{use of declaration 'get_kernel_sub_group_count_for_ndrange' requires cl_khr_subgroups extension to be enabled}}