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
/
pr48973-1.c
blob
02688a0ea5f38ccff7a4f0fabb23ce928611635e
1
/* PR middle-end/48973 */
2
3
extern
void
abort
(
void
);
4
struct
S
{
int
f
:
1
; }
s
;
5
int
v
= -
1
;
6
7
void
8
foo
(
unsigned int
x
)
9
{
10
if
(
x
!= -
1U
)
11
abort
();
12
}
13
14
int
15
main
()
16
{
17
s
.
f
= (
v
&
1
) >
0
;
18
foo
(
s
.
f
);
19
return
0
;
20
}