summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr36790.C
blob: 07e8b1052520f654d03a6f992e1b7dadd2ea408a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR middle-end/36790
// { dg-do compile }
// { dg-options "-fopenmp -O2" }

void
foo (bool b)
{
}

void
bar (bool b)
{
  foo (b);
  #pragma omp task default (shared)
    b = false;
}

int
main ()
{
  bar (false);
  return 0;
}