Warning, file /sdk/heaptrack/tests/manual/inlining.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: 2017 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "../benchutil.h" 0008 0009 inline void __attribute__((always_inline)) asdf() 0010 { 0011 auto p = new char[1234]; 0012 escape(p); 0013 } 0014 0015 inline void __attribute__((always_inline)) bar() 0016 { 0017 asdf(); 0018 } 0019 0020 inline void __attribute__((always_inline)) foo() 0021 { 0022 bar(); 0023 } 0024 0025 int main() 0026 { 0027 foo(); 0028 }