OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gcc:
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-E-O0.c
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
}