Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
gcc.dg
/
uninit-F.c
blob: 1dbb365e5b70729f6146ffcd936c1adcbb0a3100 [
file
] [
log
] [
blame
]
/* 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
;
}