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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr39666-2.c
blob
9ca119b6a07e6979f9157e1499e3cf9e1c579664
1
/* PR middle-end/39666 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -Wuninitialized" } */
4
5
int
6
foo
(
int
i
)
7
{
8
int
j
;
9
switch
(
i
)
10
{
11
case
-
__INT_MAX__
-
1
... -
1
:
12
j
=
6
;
13
break
;
14
case
0
:
15
j
=
5
;
16
break
;
17
case
2
...
__INT_MAX__
:
18
j
=
4
;
19
break
;
20
}
21
return
j
;
/* { dg-warning "may be used uninitialized" } */
22
}