Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / collapse-1.c
blob11b143839839c6ec49cf95571dc8201fc54fffa3
1 /* { dg-skip-if "not yet" { c++ } } */
3 int i, j, k;
4 extern int foo (void);
6 void
7 f1 (void)
9 #pragma acc parallel
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++)
19 void
20 f2 (void)
22 #pragma acc parallel
23 #pragma acc loop collapse (2)
24 for (i = 0; i < 5; i++)
28 for (j = 0; j < 5; j++)
36 void
37 f3 (void)
39 #pragma acc parallel
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++)
54 void
55 f4 (void)
57 #pragma acc parallel
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" } */
69 void
70 f5 (void)
72 #pragma acc parallel
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" } */
84 void
85 f6 (void)
87 #pragma acc parallel
88 #pragma acc loop collapse (2)
89 for (i = 0; i < 5; i++)
92 for (j = 0; j < 5; j++)
96 foo ();