/gcc/testsuite/gcc.dg/gomp/for-13.c
https://gitlab.com/sortix/gcc · C · 18 lines · 8 code · 4 blank · 6 comment · 2 complexity · 4157d172dbb3894d5157c8d78d7dc222 MD5 · raw file
- // At one point in development, a typo disabled the remapping of the
- // for iteration variable as private.
- // { dg-do compile }
- // { dg-options "-fopenmp -fdump-tree-ompexp" }
- extern void bar(int);
- void foo(void)
- {
- int i;
- #pragma omp parallel for default(none)
- for (i = 0; i < 10; i++)
- bar(i);
- }
- // { dg-final { scan-tree-dump-times "omp_data_o" 0 "ompexp" } }
- // { dg-final { cleanup-tree-dump "ompexp" } }