summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr35818.c
blob: b2165eb3973d0e31134b4814d2a029aca7852791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR middle-end/35818 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */

extern int a[];

void
foo (void)
{
#pragma omp parallel
#pragma omp master
  a[3] = 1;
#pragma omp parallel shared(a)
#pragma omp master
  a[3] = 1;
}