Warning, file /sdk/heaptrack/tests/manual/callgraph.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2014-2017 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 void asdf() 0008 { 0009 new char[1]; 0010 } 0011 0012 void foo() 0013 { 0014 asdf(); 0015 new char[12]; 0016 } 0017 0018 void bar() 0019 { 0020 asdf(); 0021 foo(); 0022 new char[123]; 0023 } 0024 0025 void recurse(int i) 0026 { 0027 new char[2]; 0028 bar(); 0029 if (i) { 0030 recurse(--i); 0031 } 0032 } 0033 0034 int main() 0035 { 0036 asdf(); 0037 foo(); 0038 bar(); 0039 recurse(5); 0040 return 0; 0041 }