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
/
931102-1.c
blob
489e7ebda8d0ffbfede31f17fde2db35c338ab65
1
typedef
union
2
{
3
struct
4
{
5
char
h
,
l
;
6
}
b
;
7
}
T
;
8
9
f
(
x
)
10
int
x
;
11
{
12
int
num
=
0
;
13
T reg
;
14
15
reg
.
b
.
l
=
x
;
16
while
((
reg
.
b
.
l
&
1
) ==
0
)
17
{
18
num
++;
19
reg
.
b
.
l
>>=
1
;
20
}
21
return
num
;
22
}
23
24
main
()
25
{
26
if
(
f
(
2
) !=
1
)
27
abort
();
28
exit
(
0
);
29
}
30