gcc/testsuite/c-c++-common/goacc/kernels-alias-5.c
raw| 1 | /* { dg-additional-options "-O2" } */ |
| 2 | /* { dg-additional-options "-fdump-tree-ealias-all" } */ |
| 3 | |
| 4 | void |
| 5 | foo (int *a) |
| 6 | { |
| 7 | int *p = a; |
| 8 | |
| 9 | #pragma acc kernels pcopyin (a[0:1], p[0:1]) |
| 10 | { |
| 11 | *a = 0; |
| 12 | *p = 1; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | /* Only the omp_data_i related loads should be annotated with cliques. */ |
| 17 | /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ |
| 18 | /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 2 "ealias" } } */ |
| 19 |