trick/test/SIM_alloc_test/models/allocation/include/AllocTest.hh
Alex Lin 9ddc786ace Split test sims and fun sims into separate directories.
Moved most of the rest of the sims to test.

refs #191
2016-02-23 16:19:30 -06:00

35 lines
919 B
C++

/**
@file
@verbatim
PURPOSE:
(Test all the ways to allocate and free/delete a class.)
@endverbatim
*******************************************************************************/
#ifndef ALLOCTEST_HH
#define ALLOCTEST_HH
// System include files.
#include <iostream>
#include "sim_services/include/mm_macros.hh"
class AllocTest {
public:
int ii ;
AllocTest() : ii(0) { std::cout << "AllocTest construct" << std::endl ; } ;
~AllocTest() { std::cout << "AllocTest destruct" << std::endl ; } ;
} ;
class AllocTestWithMMInterface {
TRICK_MM_INTERFACE(AllocTestWithMMInterface, AllocTestWithMMInterface)
public:
int ii ;
AllocTestWithMMInterface() : ii(0) { std::cout << "AllocTestWithMMInterface construct" << std::endl ; } ;
~AllocTestWithMMInterface() { std::cout << "AllocTestWithMMInterface destruct" << std::endl ; } ;
} ;
#endif /* _BALL_HH_ */