From 71a95f50054612042748551df900260987a9b141 Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Wed, 11 Oct 2006 11:17:53 +0000 Subject: [PATCH] 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 --- test/SmartPtr/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/SmartPtr/main.cpp b/test/SmartPtr/main.cpp index 880f437..533ff58 100644 --- a/test/SmartPtr/main.cpp +++ b/test/SmartPtr/main.cpp @@ -998,8 +998,20 @@ void DoForwardReferenceTest( void ) // ---------------------------------------------------------------------------- +struct Foo +{ + void AddRef () + {} + void Release () + {} +}; + + int main( unsigned int , const char * [] ) { + // injected friends test + Loki::SmartPtr sp; + Foo* p = Loki::GetImpl (sp); (void) p; DoRefLinkTests(); DoStrongRefCountTests(); @@ -1039,6 +1051,9 @@ int main( unsigned int , const char * [] ) // ---------------------------------------------------------------------------- // $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 // don't confuse with warnings //