Hello I am trying to access a private member function is Gtest. The code looks somewhat similar to this. So, how can I access static void Pri_fun?
Gtest
static void Pri_fun
Since it's a static function, you should access it via the class name:
abc::Pri_fun();
You should make a caller function though, or call it from the friend class' constructor:
class test{ public: void foo() { abc::Pri_fun(); } };
or
class test{ public: test() { abc::Pri_fun(); } };