1*e95ee300SAlexey Bader // RUN: %clang_cc1 -fsyntax-only -verify %s 2*e95ee300SAlexey Bader foo(int * p,int * l)3*e95ee300SAlexey Baderint *foo(__attribute__((opencl_private)) int *p, 4*e95ee300SAlexey Bader __attribute__((opencl_local)) int *l) { 5*e95ee300SAlexey Bader return p - l; // expected-error {{arithmetic operation with operands of type ('__private int *' and '__local int *') which are pointers to non-overlapping address spaces}} 6*e95ee300SAlexey Bader } 7