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
/
20040307-1.c
blob
8ab8008bb994af89ce6961940b8a215c54186e31
1
int
main
()
2
{
3
int
b
=
0
;
4
5
struct
{
6
unsigned int
bit0
:
1
;
7
unsigned int
bit1
:
1
;
8
unsigned int
bit2
:
1
;
9
unsigned int
bit3
:
1
;
10
unsigned int
bit4
:
1
;
11
unsigned int
bit5
:
1
;
12
unsigned int
bit6
:
1
;
13
unsigned int
bit7
:
1
;
14
}
sdata
= {
0x01
};
15
16
while
(
sdata
.
bit0
-- >
0
) {
17
b
++ ;
18
if
(
b
>
100
)
break
;
19
}
20
21
if
(
b
!=
1
)
22
abort
();
23
return
0
;
24
}
25