Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr35634.C
blob: 3c888ad43e1949a0b4da93ffdbdada5657dda80f [
file
] [
log
] [
blame
]
/* { dg-do run } */
extern
"C"
void
abort
(
void
);
extern
"C"
void
exit
(
int
);
void
foo
(
int
i
)
{
static
int
n
;
if
(
i
<
-
128
||
i
>
127
)
abort
();
if
(++
n
>
1000
)
exit
(
0
);
}
int
main
()
{
signed
char
c
;
for
(
c
=
0
;
;
c
++)
foo
(
c
);
}