blob: 64b295ed56d0b315e80225fb319ccf230b0279ad [file] [log] [blame]
int count;
int num;
struct A
{
A();
~A();
};
A::A()
{
if (count == num)
throw "";
count++;
}
A::~A()
{
count--;
}