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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr40579.c
blob
7f44af310e7b9b9179eb0144306d25326cb90a4d
1
extern
void
abort
(
void
);
2
static char
*
__attribute__
((
noinline
))
3
itos
(
int
num
)
4
{
5
return
(
char
*)
0
;
6
}
7
static void
__attribute__
((
noinline
))
8
foo
(
int
i
,
const char
*
x
)
9
{
10
if
(
i
>=
4
)
11
abort
();
12
}
13
int
main
()
14
{
15
int
x
= -
__INT_MAX__
+
3
;
16
int
i
;
17
18
for
(
i
=
0
;
i
<
4
; ++
i
)
19
{
20
char
*
p
;
21
--
x
;
22
p
=
itos
(
x
);
23
foo
(
i
,
p
);
24
}
25
26
return
0
;
27
}
28