If i have a simple class like this
class A {
void private_function();
public:
void public_function() { /* calls the private function in here */ }
};
Is the compiler required to emit object code for private_function(), or is it allowed to inline all calls to private_function() and to omit private_function from the generated executable?