summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr36790.c
blob: b3379f1564aaebfc115f24d49e4669822f5becdf (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" } */

void
foo (char b)
{
}

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

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