Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
c-c++-common
/
uninit-F-O0.c
blob: 737cc65007ec6caaf38fc6748c969c7f090a0de8 [
file
] [
log
] [
blame
]
/* Test we do warn about initializing variable with self in the initialization. */
/* { dg-do compile } */
/* { dg-options "-Wuninitialized" } */
int
f
()
{
int
i
=
i
+
1
;
/* { dg-warning "i" "uninitialized variable warning" } */
return
i
;
}