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