1 /* { dg-do compile { target { c || c++11 } } } */
2 /* { dg-additional-options "-std=c23" { target c } } */
4 extern void dummy (int);
9 [[omp::directive (unroll partial
)]]
10 for (int i
= 0; i
< 100; ++i
)
17 [[omp::directive (unroll
partial(10))]]
18 for (int i
= 0; i
< 100; ++i
)
25 [[omp::directive (unroll full
)]]
26 for (int i
= 0; i
< 100; ++i
)
33 [[omp::directive (unroll full
)]]
34 for (int i
= 0; i
> 100; ++i
)
41 [[omp::directive (unroll full
)]]
42 for (int i
= 1; i
<= 100; ++i
)
49 [[omp::directive (unroll full
)]]
50 for (int i
= 200; i
>= 100; i
--)
57 [[omp::directive (unroll full
)]]
58 for (int i
= -100; i
> 100; ++i
)
65 [[omp::directive (unroll full
)]]
66 for (int i
= 100; i
> -200; --i
)
73 [[omp::directive (unroll full
)]]
74 for (int i
= -300; i
!= 100; ++i
)
81 [[omp::directive (unroll full
)]]
82 for (int i
= -300; i
!= 100; ++i
)
89 [[omp::sequence (directive (unroll full
),
90 directive (unroll partial
),
91 directive (unroll partial
))]]
92 for (int i
= -300; i
!= 100; ++i
)
99 for (int i
= 0; i
< 100; ++i
)
100 [[omp::sequence (directive (unroll full
),
101 directive (unroll partial
),
102 directive (unroll partial
))]]
103 for (int j
= -300; j
!= 100; ++j
)
110 [[omp::directive (for)]]
111 for (int i
= 0; i
< 100; ++i
)
112 [[omp::sequence (directive (unroll full
),
113 directive (unroll partial
),
114 directive (unroll partial
))]]
115 for (int j
= -300; j
!= 100; ++j
)
122 [[omp::directive (for)]]
123 for (int i
= 0; i
< 100; ++i
)
127 [[omp::sequence (directive (unroll full
),
128 directive (unroll partial
),
129 directive (unroll partial
))]]
130 for (int j
= -300; j
!= 100; ++j
)