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.dg
/
pr83605.c
blob
c680f0ce91f76e91e04b3a32734306df0c2013a4
1
/* PR tree-optimization/83605 */
2
/* { dg-do compile } */
3
/* { dg-options "-O1 -ftrapv -fexceptions -fnon-call-exceptions" } */
4
5
int
a
;
6
7
int
8
foo
(
int
x
)
9
{
10
int
b
=
a
;
11
{
12
int
c
;
13
int
*
d
= (
x
==
0
) ? &
c
: &
b
;
14
15
for
(
a
=
0
;
a
<
2
; ++
a
)
16
c
= (
x
+
b
) <
a
;
17
18
return
*
d
;
19
}
20
}