summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr34694.C
blob: c225e1545232c23aeab32e7253535c0e06cf5f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR middle-end/34694
// { dg-do compile }
// { dg-options "-O -fopenmp -Wall" }

int i;

void
foo ()
{
#pragma omp parallel
  {
    int j;	// { dg-message "note: 'j' was declared here" }
    i = j;	// { dg-warning "is used uninitialized" }
  }
}