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
/
931004-13.c
blob
60422af8eb7c88fe488259d21ac9f441daec7247
1
struct
tiny
2
{
3
char
c
;
4
char
d
;
5
char
e
;
6
char
f
;
7
};
8
9
f
(
int
n
,
struct
tiny x
,
struct
tiny y
,
struct
tiny z
,
long
l
)
10
{
11
if
(
x
.
c
!=
10
)
12
abort
();
13
if
(
x
.
d
!=
20
)
14
abort
();
15
if
(
x
.
e
!=
30
)
16
abort
();
17
if
(
x
.
f
!=
40
)
18
abort
();
19
20
if
(
y
.
c
!=
11
)
21
abort
();
22
if
(
y
.
d
!=
21
)
23
abort
();
24
if
(
y
.
e
!=
31
)
25
abort
();
26
if
(
y
.
f
!=
41
)
27
abort
();
28
29
if
(
z
.
c
!=
12
)
30
abort
();
31
if
(
z
.
d
!=
22
)
32
abort
();
33
if
(
z
.
e
!=
32
)
34
abort
();
35
if
(
z
.
f
!=
42
)
36
abort
();
37
38
if
(
l
!=
123
)
39
abort
();
40
}
41
42
main
()
43
{
44
struct
tiny x
[
3
];
45
x
[
0
].
c
=
10
;
46
x
[
1
].
c
=
11
;
47
x
[
2
].
c
=
12
;
48
x
[
0
].
d
=
20
;
49
x
[
1
].
d
=
21
;
50
x
[
2
].
d
=
22
;
51
x
[
0
].
e
=
30
;
52
x
[
1
].
e
=
31
;
53
x
[
2
].
e
=
32
;
54
x
[
0
].
f
=
40
;
55
x
[
1
].
f
=
41
;
56
x
[
2
].
f
=
42
;
57
f
(
3
,
x
[
0
],
x
[
1
],
x
[
2
], (
long
)
123
);
58
exit
(
0
);
59
}
60