repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
uninit-E-O0.c
blob
2cc2459663d0fe2aaa9856702adf42b4366c86be
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" } */
4
5
int
f
()
6
{
7
int
i
=
i
;
/* { dg-warning "i" "uninitialized variable warning" } */
8
return
i
;
9
}