File: userspace-probe-elf-cxx-binary.cpp

package info (click to toggle)
ltt-control 2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,744 kB
  • sloc: cpp: 207,706; sh: 28,837; python: 18,952; ansic: 11,636; makefile: 3,362; java: 109; xml: 46
file content (27 lines) | stat: -rw-r--r-- 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * SPDX-FileCopyrightText: 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 *
 */

#include "test_class.hpp"

volatile int not_a_function = 0;

void test_cxx_function() __attribute__((noinline));
void test_cxx_function()
{
	not_a_function += 1;
}

int main()
{
	test_class my_test_class;
	/* Call test function. */
	test_cxx_function();

	/* Call test method. */
	my_test_class.test_method();
	return 0;
}