test injected friends. Thanks to Sigoure Benoit
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@710 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
0ac52235b4
commit
71a95f5005
1 changed files with 15 additions and 0 deletions
|
@ -998,8 +998,20 @@ void DoForwardReferenceTest( void )
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
struct Foo
|
||||||
|
{
|
||||||
|
void AddRef ()
|
||||||
|
{}
|
||||||
|
void Release ()
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
int main( unsigned int , const char * [] )
|
int main( unsigned int , const char * [] )
|
||||||
{
|
{
|
||||||
|
// injected friends test
|
||||||
|
Loki::SmartPtr<Foo, Loki::COMRefCounted> sp;
|
||||||
|
Foo* p = Loki::GetImpl (sp); (void) p;
|
||||||
|
|
||||||
DoRefLinkTests();
|
DoRefLinkTests();
|
||||||
DoStrongRefCountTests();
|
DoStrongRefCountTests();
|
||||||
|
@ -1039,6 +1051,9 @@ int main( unsigned int , const char * [] )
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.10 2006/10/11 11:17:53 syntheticpp
|
||||||
|
// test injected friends. Thanks to Sigoure Benoit
|
||||||
|
//
|
||||||
// Revision 1.9 2006/05/30 14:17:05 syntheticpp
|
// Revision 1.9 2006/05/30 14:17:05 syntheticpp
|
||||||
// don't confuse with warnings
|
// don't confuse with warnings
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue