Compile fixes
[ACE_TAO.git] / ACE / tests / Singleton_Test.cpp
blob936295f4277eb5ea6ef08a08258ce82a2ce4feaf
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"
17 int
18 run_main (int, ACE_TCHAR *[])
20 ACE_START_TEST (ACE_TEXT ("Singleton_Test"));
22 int *i = ACE_Singleton <int, ACE_SYNCH_RECURSIVE_MUTEX>::instance ();
23 *i = 3;
24 ACE_Singleton <int, ACE_SYNCH_RECURSIVE_MUTEX>::close ();
26 ACE_END_TEST;
28 return 0;