2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered when testing with ACE
6 #include "test_config.h"
9 template <typename key
, typename value
>
13 my_map () : capacity_ (0), nodes_(0) {}
16 using data_type
= value
;
17 using value_type
= std::pair
<key
, value
>;
22 template <typename key
, typename value
>
23 my_map
<key
, value
>::~my_map ()
25 for (size_t i
= 0; i
!= capacity_
; ++i
)
27 #if defined (ACE_HAS_BCC32)
29 (nodes_
+ i
)->~pair
<key
, value
>();
31 (nodes_
+ i
)->~value_type ();
44 run_main (int, ACE_TCHAR
*[])
46 ACE_START_TEST (ACE_TEXT("Compiler_Features_37_Test"));
48 my_map
<size_t, Bar
*> foo
;
52 ACE_TEXT ("C++ support ok\n")));