Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
);
}