1 /* { dg-skip-if "not yet" { c++ } } */
10 #pragma acc loop collapse (2)
11 for (i
= 0; i
< 5; i
++)
12 ; /* { dg-error "not enough perfectly nested" } */
14 for (j
= 0; j
< 5; j
++)
23 #pragma acc loop collapse (2)
24 for (i
= 0; i
< 5; i
++)
28 for (j
= 0; j
< 5; j
++)
40 #pragma acc loop collapse (2)
41 for (i
= 0; i
< 5; i
++)
43 int k
= foo (); /* { dg-error "not enough perfectly nested" } */
46 for (j
= 0; j
< 5; j
++)
58 #pragma acc loop collapse (2)
59 for (i
= 0; i
< 5; i
++)
62 for (j
= 0; j
< 5; j
++)
64 foo (); /* { dg-error "collapsed loops not perfectly nested before" } */
73 #pragma acc loop collapse (2)
74 for (i
= 0; i
< 5; i
++)
77 for (j
= 0; j
< 5; j
++)
80 foo (); /* { dg-error "collapsed loops not perfectly nested before" } */
88 #pragma acc loop collapse (2)
89 for (i
= 0; i
< 5; i
++)
92 for (j
= 0; j
< 5; j
++)