File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,8 @@ void func_multiple_addr2(void) {
265265 __attribute__((opencl_private )) private_int_t var5 ; // expected-warning {{multiple identical address spaces specified for type}}
266266 __attribute__((opencl_private )) private_int_t * var6 ; // expected-warning {{multiple identical address spaces specified for type}}
267267#if __OPENCL_CPP_VERSION__
268- __global int [[clang ::opencl_private ]] var7 ; // expected-error {{multiple address spaces specified for type}}
268+ __global int [[clang ::opencl_private ]] var7 ; // expected-error {{multiple address spaces specified for type}} \
269+ // expected-error {{function scope variable cannot be declared in global address space}}
269270 __global int [[clang ::opencl_private ]] * var8 ; // expected-error {{multiple address spaces specified for type}}
270271 private_int_t [[clang ::opencl_private ]] var9 ; // expected-warning {{multiple identical address spaces specified for type}}
271272 private_int_t [[clang ::opencl_private ]] * var10 ; // expected-warning {{multiple identical address spaces specified for type}}
You can’t perform that action at this time.
0 commit comments