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

int
main ()
{
  int bar, foo = 1;
#pragma omp parallel for shared(foo)
  for (bar = 0; bar < 3; bar++)
    {
      switch (foo)
	{
	case 1:
	  break;
	}
    }
  return 0;
}