1 /* { dg-additional-options "-O2" } */
2 /* { dg-additional-options "-fipa-pta -fdump-tree-optimized" } */
3 
4 #define N 2
5 
6 void
foo(void)7 foo (void)
8 {
9   unsigned int a[N];
10   unsigned int b[N];
11   unsigned int c[N];
12 
13 #pragma acc kernels pcopyout (a, b, c)
14   {
15     a[0] = 0;
16     b[0] = 1;
17     c[0] = a[0];
18   }
19 }
20 
21 /* { dg-final { scan-tree-dump-times "(?n)= 0;$" 2 "optimized" } } */
22 /* { dg-final { scan-tree-dump-times "(?n)= 1;$" 1 "optimized" } } */
23 /* { dg-final { scan-tree-dump-times "(?n)= \\*_\[0-9\]\\\[0\\\];$" 0 "optimized" } } */
24