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
/
20100805-1.c
blob
5b476960ed7beef2644a33d5d35bd7479e035395
1
unsigned int
foo
(
unsigned int
a
,
unsigned int
b
)
2
{
3
unsigned
i
;
4
a
=
a
&
1
;
5
for
(
i
=
0
;
i
<
b
; ++
i
)
6
a
=
a
<<
1
|
a
>> (
sizeof
(
unsigned int
) *
8
-
1
);
7
return
a
;
8
}
9
extern
void
abort
(
void
);
10
int
main
()
11
{
12
if
(
foo
(
1
,
sizeof
(
unsigned int
) *
8
+
1
) !=
2
)
13
abort
();
14
return
0
;
15
}