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
/
950710-1.c
blob
26ff9b2a8a0f3f93d91b1aaffc29fb4284d20e0c
1
struct
twelve
2
{
3
int
a
;
4
int
b
;
5
int
c
;
6
};
7
8
struct
pair
9
{
10
int
first
;
11
int
second
;
12
};
13
14
struct
pair
15
g
()
16
{
17
struct
pair p
;
18
return
p
;
19
}
20
21
static void
22
f
()
23
{
24
int
i
;
25
for
(
i
=
0
;
i
<
1
;
i
++)
26
{
27
int
j
;
28
for
(
j
=
0
;
j
<
1
;
j
++)
29
{
30
if
(
0
)
31
{
32
int
k
;
33
for
(
k
=
0
;
k
<
1
;
k
++)
34
{
35
struct
pair e
=
g
();
36
}
37
}
38
else
39
{
40
struct
twelve a
,
b
;
41
if
((((
char
*) &
b
- (
char
*) &
a
) <
0
42
? (-((
char
*) &
b
- (
char
*) &
a
))
43
: ((
char
*) &
b
- (
char
*) &
a
)) <
sizeof
(
a
))
44
abort
();
45
}
46
}
47
}
48
}
49
50
main
()
51
{
52
f
();
53
exit
(
0
);
54
}