brintos

brintos / llvm-project-archived public Read only

0
0
Text · 320 B · af72bc7 Raw
7 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3int *foo(__attribute__((opencl_private)) int *p,4         __attribute__((opencl_local)) int *l) {5  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}7