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++/70940 make pmr::resource_adaptor return aligned memory
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr52904.c
blob
0b8910fbe180abe045901203e67d1a290fb2cf73
1
/* { dg-do compile } */
2
/* { dg-options "-Wstrict-overflow -O2" } */
3
extern
int
foo
(
int
);
4
5
int
6
wait_reading_process_output
(
void
)
7
{
8
int
nfds
=
0
;
9
int
channel
;
10
11
for
(
channel
=
0
;
channel
<
1024
; ++
channel
)
12
{
13
if
(
foo
(
channel
))
14
nfds
++;
15
}
16
17
if
(
nfds
<
0
)
/* { dg-bogus "assuming signed overflow does not occur" "" } */
18
return
1
;
19
return
0
;
20
}