PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr68640.c
blobd2b1b472140a1064dcc58396d9bed3cb7d30d1fe
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fopenmp -fdump-tree-ealias-all" } */
4 #define N 1024
6 int
7 foo (int *__restrict__ ap)
9 int *bp = ap;
10 #pragma omp parallel for
11 for (unsigned int idx = 0; idx < N; idx++)
12 ap[idx] = bp[idx];
15 /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */
16 /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 2 "ealias" } } */