You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
320 B

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