Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / sb-3.c
blob147b7b0e8455bd1cc37aa33cebde8d60d9ca9d72
1 // { dg-skip-if "not yet" { c++ } }
3 void f (void)
5 int i, j;
6 #pragma acc loop
7 for(i = 1; i < 30; i++)
9 if (i == 7) goto out; // { dg-error "invalid branch to/from OpenACC structured block" }
10 #pragma acc loop // { dg-error "work-sharing region may not be closely nested inside of work-sharing, critical, ordered, master or explicit task region" }
11 for(j = 5; j < 10; j++)
13 if (i == 6 && j == 7) goto out; // { dg-error "invalid branch to/from OpenACC structured block" }
16 out: