gcc/
[official-gcc.git] / gcc / testsuite / c-c++-common / uninit-F.c
blob1dbb365e5b70729f6146ffcd936c1adcbb0a3100
1 /* Test we do warn about initializing variable with self in the initialization. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized" } */
5 int f()
7 int i = i + 1; /* { dg-warning "i" "uninitialized variable warning" } */
8 return i;