Merge branches/gcc-4_8-branch rev 208968.
[official-gcc.git] / gcc-4_8-branch / gcc / testsuite / c-c++-common / uninit-E-O0.c
blob2cc2459663d0fe2aaa9856702adf42b4366c86be
1 /* Test we do warn about initializing variable with self when -Winit-self is supplied. */
2 /* { dg-do compile } */
3 /* { dg-options "-Wuninitialized -Winit-self" } */
5 int f()
7 int i = i; /* { dg-warning "i" "uninitialized variable warning" } */
8 return i;