1 /* { dg-do compile { target { c || c++11 } } } */
2 /* { dg-additional-options "-std=c23" { target c } } */
3 /* { dg-additional-options "-O2 -fdump-tree-original -fdump-tree-gimple -fdump-tree-cunroll" } */
5 extern void dummy (int);
10 [[omp::directive (unroll full
)]]
11 for (int i
= 0; i
< 10; i
++)
15 /* Loop should be removed with 10 copies of the body remaining */
16 /* { dg-final { scan-tree-dump-times "dummy" 10 "cunroll" } } */
17 /* { dg-final { scan-tree-dump "#pragma omp unroll" "original" } } */
18 /* { dg-final { scan-tree-dump-not "#pragma omp" "gimple" } } */