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
/
pr48717.c
blob
a746374a26d13ce8c31f141e679e9ce47570d664
1
/* PR tree-optimization/48717 */
2
3
extern
void
abort
(
void
);
4
5
int
v
=
1
,
w
;
6
7
unsigned short
8
foo
(
unsigned short
x
,
unsigned short
y
)
9
{
10
return
x
+
y
;
11
}
12
13
void
14
bar
(
void
)
15
{
16
v
=
foo
(~
w
,
w
);
17
}
18
19
int
20
main
()
21
{
22
bar
();
23
if
(
v
!= (
unsigned short
) -
1
)
24
abort
();
25
return
0
;
26
}