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 libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
uninit-pr51010.c
blob
f28da46562ce058971928a30b2cf12b621a8b1eb
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
}