Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / tests / Singleton_Test.cpp
blob33d9ab857c7a8c9cd6915bebec3450c7209897df
2 //=============================================================================
3 /**
4 * @file Singleton_Test.cpp
6 * This is a simple test of ACE Singleton
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 */
10 //=============================================================================
13 #include "test_config.h"
14 #include "ace/Singleton.h"
18 int
19 run_main (int, ACE_TCHAR *[])
21 ACE_START_TEST (ACE_TEXT ("Singleton_Test"));
23 int *i = ACE_Singleton <int, ACE_SYNCH_RECURSIVE_MUTEX>::instance ();
24 *i = 3;
25 ACE_Singleton <int, ACE_SYNCH_RECURSIVE_MUTEX>::close ();
27 ACE_END_TEST;
29 return 0;