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
2011-11-08 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
c-c++-common
/
uninit-pr51010.c
1
/* { dg-do compile } */
2
/* { dg-options "-O -Wuninitialized" } */
3
4
int f (int j)
5
{
6
int a [10];
7
return a [j]; /* { dg-warning "a\\\[j\\\]. is used uninitialized" } */
8
}
9
int g (int j)
10
{
11
int a [10];
12
return a [j+1]; /* { dg-warning "a\\\[<unknown>\\\]. is used uninitialized" } */
13
}