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
/
20000412-3.c
blob
a5cb3eece03b403f72cee2de78694446432f56d4
1
typedef
struct
{
2
char
y
;
3
char
x
[
32
];
4
}
X
;
5
6
int
z
(
void
)
7
{
8
X xxx
;
9
xxx
.
x
[
0
] =
10
xxx
.
x
[
31
] =
'0'
;
11
xxx
.
y
=
0xf
;
12
return
f
(
xxx
,
xxx
);
13
}
14
15
int
main
(
void
)
16
{
17
int
val
;
18
19
val
=
z
();
20
if
(
val
!=
0x60
)
21
abort
();
22
exit
(
0
);
23
}
24
25
int
f
(
X x
,
X y
)
26
{
27
if
(
x
.
y
!=
y
.
y
)
28
return
'F'
;
29
30
return
x
.
x
[
0
] +
y
.
x
[
0
];
31
}
32