| 1 |
/* PR middle-end/64888 */ |
| 2 |
/* { dg-do compile { target fopenmp } } */ |
| 3 |
/* { dg-options "-fopenmp -fsanitize=undefined" } */ |
| 4 |
|
| 5 |
int a, b; |
| 6 |
|
| 7 |
void |
| 8 |
foo () |
| 9 |
{ |
| 10 |
int c; |
| 11 |
#pragma omp parallel default (none) shared (a, b) private (c) |
| 12 |
{ |
| 13 |
c = a / b; /* { dg-bogus "not specified in enclosing" } */ |
| 14 |
(void) c; |
| 15 |
} |
| 16 |
#pragma omp task default (none) shared (a, b) private (c) |
| 17 |
{ |
| 18 |
c = a << b; /* { dg-bogus "not specified in enclosing" } */ |
| 19 |
(void) c; |
| 20 |
} |
| 21 |
#pragma omp teams default (none) shared (a, b) |
| 22 |
{ |
| 23 |
int d[a]; /* { dg-bogus "not specified in enclosing" } */ |
| 24 |
d[0] = 0; |
| 25 |
(void) d[0]; |
| 26 |
} |
| 27 |
} |