1 /* { dg-additional-options "-O2" } */
2 /* { dg-additional-options "-fipa-pta -fdump-tree-optimized" } */
3
4 void
foo(void)5 foo (void)
6 {
7 unsigned int a;
8 unsigned int b;
9 unsigned int c;
10
11 #pragma acc kernels pcopyout (a, b, c)
12 {
13 a = 0;
14 b = 1;
15 c = a;
16 }
17 }
18
19 /* XFAIL: see PR middle-end/95622; fails if ENABLE_OFFLOAD is set. */
20 /* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" { xfail offloading_enabled } } } */
21 /* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
22 /* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\];$" 0 "optimized" { xfail offloading_enabled } } } */
23