Debian Codegraph @

gcc/testsuite/gcc.dg/gomp/loop-2.c

raw
1 void
2 foo (void)
3 {
4 int i = 0;
5 #pragma omp for collapse(2) /* { dg-error "the same loop iteration variables 'i' used in multiple associated loops" } */
6 for (i = 0; i < 16; i++)
7 for (i = 1; i < 32; i++)
8 ;
9 #pragma omp taskloop collapse(2) /* { dg-error "the same loop iteration variables 'j' used in multiple associated loops" } */
10 for (int j = 0; j < 16; j++)
11 for (j = 0; j < 16; j++)
12 ;
13 }