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 warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr85167.c
blob
e4277e3ef7220b93f74a4ecfa07f21bcf0f89d3a
1
/* PR rtl-optimization/85167 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -w" } */
4
5
struct
A
{
long
b
; };
6
int
c
,
d
,
e
;
7
int
bar
(
void
);
8
9
int
10
foo
(
void
)
11
{
12
long
g
;
13
for
(;
g
==
c
?
0
: (
e
=
1
);
g
= ((
struct
A
*)
g
)->
b
)
14
if
(
bar
())
15
return
d
;
16
}