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
/
compile
/
20090303-1.c
blob
18a3d91fd1c5ede98fd25e9ccf10c655b2034f56
1
/* The array offset became 0x1ffffffffffffffe via a conversion from
2
signed to unsigned HOST_WIDE_INT, causing an ICE compiling for
3
Thumb. */
4
5
int
r
(
unsigned short
*);
6
void
s
(
unsigned short
*,
unsigned short
*);
7
8
int
9
f
(
int
x
)
10
{
11
unsigned short
a
[
1
],
c
[
1
];
12
13
if
(
r
(
a
))
14
return
x
;
15
16
if
(
c
[-
1
])
17
s
(
a
,
c
);
18
19
return
0
;
20
}