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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr45427.c
blob
2f86f02a30ce0b44992c2698735efe5c0067496b
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
3
4
extern
void
abort
(
void
);
5
int
__attribute__
((
noinline
,
noclone
))
6
foo
(
char
*
p
)
7
{
8
int
h
=
0
;
9
do
10
{
11
if
(*
p
==
'\0'
)
12
break
;
13
++
h
;
14
if
(
p
==
0
)
15
abort
();
16
++
p
;
17
}
18
while
(
1
);
19
return
h
;
20
}
21
int
main
()
22
{
23
if
(
foo
(
"a"
) !=
1
)
24
abort
();
25
return
0
;
26
}
27
28
/* { dg-final { scan-tree-dump-times "bounded by 0x0\[^0-9a-f\]" 0 "cunrolli"} } */