aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/uninit-F.c
blob: 1dbb365e5b70729f6146ffcd936c1adcbb0a3100 (plain)
1
2
3
4
5
6
7
8
9
/* Test we do warn about initializing variable with self in the initialization. */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */

int f()
{
  int i = i + 1; /* { dg-warning "i" "uninitialized variable warning" }  */
  return i;
}