From: Milian Wolff Date: Mon, 25 Aug 2014 21:56:32 +0000 (+0200) Subject: Add a bit of recursion to the callgraph test debugee X-Git-Tag: submit/tizen/20180620.112952^2~460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2742841a3a783775b4886f534ff8e065e5adc025;p=sdk%2Ftools%2Fheaptrack.git Add a bit of recursion to the callgraph test debugee --- diff --git a/tests/callgraph.cpp b/tests/callgraph.cpp index 08b213b..c4a8bd8 100644 --- a/tests/callgraph.cpp +++ b/tests/callgraph.cpp @@ -16,10 +16,20 @@ void bar() new char[123]; } +void recurse(int i) +{ + new char[2]; + bar(); + if (i) { + recurse(--i); + } +} + int main() { asdf(); foo(); bar(); + recurse(5); return 0; }