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
/
920520-1.c
blob
068a12e9249113e427078eaeeb5e9a6b3dfa5e48
1
foo
(
int
*
bar
)
2
{
3
*
bar
=
8
;
4
}
5
6
bugger
()
7
{
8
int
oldDepth
,
newDepth
;
9
10
foo
(&
oldDepth
);
11
12
switch
(
oldDepth
)
13
{
14
case
8
:
15
case
500
:
16
newDepth
=
8
;
17
break
;
18
19
case
5000
:
20
newDepth
=
500
;
21
break
;
22
23
default
:
24
newDepth
=
17
;
25
break
;
26
}
27
28
return
newDepth
-
oldDepth
;
29
}
30
31
main
()
32
{
33
if
(
bugger
() !=
0
)
34
abort
();
35
exit
(
0
);
36
}