I am viewing a source code and it has got a singleton class like :
class A {
private:
A() {}
~A() {}
};
And i see no copy constructor and assignment operator. When i talked about it, i got the response that it would not fail.
But i had read that making copy constructor and assignment operator private or inaccessible is important. But i am unable to generate some breaking test cases.
What test case can create two objects of this class ?