summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2014-08-25 23:56:32 +0200
committerMilian Wolff <mail@milianw.de>2014-08-25 23:56:32 +0200
commit2742841a3a783775b4886f534ff8e065e5adc025 (patch)
tree4d3838cadb4e360a0fe79841940cda1ee809773e /tests
parenteb5c5e7700553662f6ca071f414fc530b691471b (diff)
downloadheaptrack-2742841a3a783775b4886f534ff8e065e5adc025.tar.gz
heaptrack-2742841a3a783775b4886f534ff8e065e5adc025.tar.bz2
heaptrack-2742841a3a783775b4886f534ff8e065e5adc025.zip
Add a bit of recursion to the callgraph test debugee
Diffstat (limited to 'tests')
-rw-r--r--tests/callgraph.cpp10
1 files changed, 10 insertions, 0 deletions
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;
}