blob: d7bc6cd6ff1b5d67e8b1ba043ef86fa0078435b4 [file] [log] [blame]
/* { dg-additional-options "-O2" } */
/* { dg-additional-options "-fipa-pta -fdump-tree-optimized" } */
void
foo (void)
{
unsigned int a;
unsigned int b;
unsigned int c;
#pragma acc kernels pcopyout (a, b, c)
{
a = 0;
b = 1;
c = a;
}
}
/* XFAIL: see PR middle-end/95622; fails if ENABLE_OFFLOAD is set. */
/* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" { xfail offloading_enabled } } } */
/* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\];$" 0 "optimized" { xfail offloading_enabled } } } */