21 lines · plain
1//RUN: %clang_cc1 %s -triple spir-unknown-unknown -pedantic -verify2 3struct C {4 void m1() __local __local; //expected-warning{{multiple identical address spaces specified for type}}5 //expected-note@-1{{candidate function}}6 void m1() __global;7 //expected-note@-1{{candidate function}}8 void m2() __global __local; //expected-error{{multiple address spaces specified for type}}9};10 11__global C c_glob;12 13__kernel void bar() {14 __local C c_loc;15 C c_priv;16 17 c_glob.m1();18 c_loc.m1();19 c_priv.m1(); //expected-error{{no matching member function for call to 'm1'}}20}21