blob: 908e1cafd71915bf300b593492950577213b6f75 [file] [log] [blame]
/* { dg-additional-options "-O2" } */
/* { dg-additional-options "-fdump-tree-ealias-all" } */
typedef __SIZE_TYPE__ size_t;
extern void *acc_copyin (void *, size_t);
void
foo (void)
{
int a = 0;
int *p = (int *)acc_copyin (&a, sizeof (a));
#pragma acc kernels deviceptr (p) pcopy(a)
{
a = 0;
*p = 1;
}
}
/* Only the omp_data_i related loads should be annotated with cliques. */
/* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */
/* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 3 "ealias" } } */