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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-overflow-26.c
blob
ef805b56d25292aaa8744b07d10a6d9d078ee837
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wstrict-overflow" } */
3
4
int
5
f
(
int
i
,
int
j
)
6
{
7
unsigned int
c
=
0
;
8
if
(
i
<
j
)
9
{
10
unsigned int
n
=
j
-
i
;
11
unsigned int
i
;
12
for
(
i
=
0
;
i
<
n
;
i
++)
/* { dg-bogus "signed overflow" } */
13
c
++;
14
}
15
return
c
;
16
}