blob: 6319c2fecedf33dbe5752e8cf35577a75b7fbf25 (
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
|
/* PR middle-end/64888 */
/* { dg-do compile { target fopenmp } } */
/* { dg-options "-fopenmp -fsanitize=undefined" } */
int a, b;
void
foo ()
{
int c;
#pragma omp parallel default (none) shared (a, b) private (c)
{
c = a / b; /* { dg-bogus "not specified in enclosing" } */
(void) c;
}
#pragma omp task default (none) shared (a, b) private (c)
{
c = a << b; /* { dg-bogus "not specified in enclosing" } */
(void) c;
}
#pragma omp teams default (none) shared (a, b)
{
int d[a]; /* { dg-bogus "not specified in enclosing" } */
d[0] = 0;
(void) d[0];
}
}
|