blob: 546a1d0c157795dab0b1528fbf70db24f7e72527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* { dg-do compile } */
void
foo (int x, int y)
{
bad1:
#pragma omp target data map(tofrom: y)
goto bad1; /* { dg-error "invalid branch" } */
goto bad2; /* { dg-error "invalid entry" } */
#pragma omp target data map(tofrom: y)
{
bad2: ;
}
#pragma omp target data map(tofrom: y)
{
int i;
goto ok1;
for (i = 0; i < 10; ++i)
{ ok1: break; }
}
switch (x) /* { dg-error "invalid entry" } */
{
#pragma omp target data map(tofrom: y)
{ case 0:; }
}
}
|