diff options
author | Matthias Huetsch [mhu] <matthias.huetsch@sun.com> | 2010-06-16 16:46:19 +0200 |
---|---|---|
committer | Matthias Huetsch [mhu] <matthias.huetsch@sun.com> | 2010-06-16 16:46:19 +0200 |
commit | fd6a68632ee4e509e47e3da4eb8dd6db38a852c0 (patch) | |
tree | 1f18817d265327fa6cf311624e011e68ab28ab5e /tools/workben | |
parent | d21adcdca61a7c54b3bf1584d80746dc0d2d1fc0 (diff) |
Added enclosing classname to FixedMemPool diagnosis.
Diffstat (limited to 'tools/workben')
-rw-r--r-- | tools/workben/makefile.mk | 5 | ||||
-rw-r--r-- | tools/workben/mempooltest.cxx | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tools/workben/makefile.mk b/tools/workben/makefile.mk index 73d5753fe233..b73e8da83686 100644 --- a/tools/workben/makefile.mk +++ b/tools/workben/makefile.mk @@ -62,6 +62,11 @@ APP3TARGET = inetmimetest APP3OBJS = $(OBJ)$/inetmimetest.obj APP3STDLIBS = $(SALLIB) $(TOOLSLIB) +APP4TARGET = mempooltest +APP4OBJS = $(OBJ)$/mempooltest.obj +APP4STDLIBS = $(TOOLSLIB) +APP4RPATH = UREBIN + # APP3TARGET = tldem # APP3OBJS = $(OBJ)$/tldem.obj # .IF "$(GUI)" == "UNX" diff --git a/tools/workben/mempooltest.cxx b/tools/workben/mempooltest.cxx new file mode 100644 index 000000000000..bf00343bc9d6 --- /dev/null +++ b/tools/workben/mempooltest.cxx @@ -0,0 +1,18 @@ +#include "tools/mempool.hxx" + +struct MempoolTest +{ + int m_int; + + DECL_FIXEDMEMPOOL_NEWDEL(MempoolTest); +}; + +IMPL_FIXEDMEMPOOL_NEWDEL(MempoolTest, 0, 0); + +int main() +{ + MempoolTest * p = new MempoolTest(); + if (p != 0) + delete p; + return 1; +} |