PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / uninit-E.c
blobeb356c3ee0d64c405ae12c1ce55dccc99ba3d189
1 /* Test we do warn about initializing variable with self when -Winit-self is supplied. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized -Winit-self" } */
5 int f()
7 int i = i; /* { dg-warning "i" "uninitialized variable warning" } */
8 return i;