summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/uninit-1.c
blob: 223e617b461dc44fa77539debf6c896d6d00f08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR 24612
// { dg-do compile }
// { dg-options "-O -Wuninitialized -fopenmp" }

void foo()
{
    int i;
#pragma omp parallel shared(i)
    {
      i = 0;
      ++i;
    }
}