Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr17624.C
blob: 07fbf14da3619431dea54d1081322d527cf1ce34 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O2" }
extern
void
foo
(
void
);
int
c
;
void
foo
(
int
n
)
{
int
j
=
0
;
try
{
for
(;;)
{
foo
();
if
(
j
++
==
n
)
break
;
foo
();
}
}
catch
(...)
{
c
=
j
;
}
}