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
/
pr71631.c
blob
f27c03e010dc0febd11a7838ef3419cb24c8c952
1
/* PR tree-optimization/71631 */
2
3
volatile
char
v
;
4
int
a
=
1
,
b
=
1
,
c
=
1
;
5
6
void
7
foo
(
const char
*
s
)
8
{
9
while
(*
s
++)
10
v
= *
s
;
11
}
12
13
int
14
main
()
15
{
16
volatile
int
d
=
1
;
17
volatile
int
e
=
1
;
18
int
f
=
1
/
a
;
19
int
g
=
1U
<
f
;
20
int
h
=
2
+
g
;
21
int
i
=
3
%
h
;
22
int
j
=
e
&&
b
;
23
int
k
=
1
==
c
;
24
int
l
=
d
!=
0
;
25
short
m
= (
short
) (-
1
*
i
*
l
);
26
short
x
=
j
* (
k
*
m
);
27
if
(
i
==
1
)
28
foo
(
"AB"
);
29
if
(
x
!= -
1
)
30
__builtin_abort
();
31
return
0
;
32
}