From 60eaaf90d140b63fcfe1b094eece8db892d4c963 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 7 Sep 2009 08:37:36 +0000 Subject: [PATCH] Syncing uppdev git-svn-id: svn://ultimatepp.org/upp/trunk@1562 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppdev/GetAlloc/GetAlloc.cpp | 12 ++++++++++++ uppdev/GetAlloc/GetAlloc.upp | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 uppdev/GetAlloc/GetAlloc.cpp create mode 100644 uppdev/GetAlloc/GetAlloc.upp diff --git a/uppdev/GetAlloc/GetAlloc.cpp b/uppdev/GetAlloc/GetAlloc.cpp new file mode 100644 index 000000000..b484b87fc --- /dev/null +++ b/uppdev/GetAlloc/GetAlloc.cpp @@ -0,0 +1,12 @@ +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + Vector v; + for(int i = 0; i < 1000; i++) { + v.At(i); + RLOG(v.GetCount() << ' ' << v.GetAlloc()); + } +} diff --git a/uppdev/GetAlloc/GetAlloc.upp b/uppdev/GetAlloc/GetAlloc.upp new file mode 100644 index 000000000..5024cd917 --- /dev/null +++ b/uppdev/GetAlloc/GetAlloc.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + GetAlloc.cpp; + +mainconfig + "" = ""; +