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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20070212-1.c
blob
efda7f9cf66867f256f5d0e34a683951f41aeb14
1
struct
f
2
{
3
int
i
;
4
};
5
6
int
g
(
int
i
,
int
c
,
struct
f
*
ff
,
int
*
p
)
7
{
8
int
*
t
;
9
if
(
c
)
10
t
= &
i
;
11
else
12
t
= &
ff
->
i
;
13
*
p
=
0
;
14
return
*
t
;
15
}
16
17
extern
void
abort
(
void
);
18
19
int
main
()
20
{
21
struct
f f
;
22
f
.
i
=
1
;
23
if
(
g
(
5
,
0
, &
f
, &
f
.
i
) !=
0
)
24
abort
();
25
return
0
;
26
}