blob: b0a0c5253b6406dba2e90b4ce50d61007f10926e [file] [log] [blame]
// PR c++/14724
// { dg-do run }
int j;
template <class T>
struct C {
C() { ++j; }
~C() { --j; }
};
int main(int, char **) {
{
int i = 0;
again:
C<int> v;
if (++i < 10)
goto again;
}
return j;
}