I was thinking of if there is any framework/library which provides a mechanism to test the functions which are not exported by the shared library.

I want to test working of functions listed in "t" section of shared library. For testing functions in "T" section i'hv used cppunit.

Test scenario:
There is a class exported using "**\_\_*attribute*\_\_ ((visibility("default")))**" which declares a variable of another class which is having "**\_\_*attribute*\_\_ ((visibility("hidden")))**" which is defined in the same library.
I want to test the class with "**\_\_*attribute*\_\_ ((visibility("hidden")))**" attributes.

Programming language of library is c++

compiler gcc 4.1.2

platform RedHat/Solaris