Fix: syscall event rule: emission sites not compared in is_equal
[lttng-tools.git] / tests / utils / testapp / userspace-probe-elf-cxx-binary / userspace-probe-elf-cxx-binary.cpp
CommitLineData
a9c2df2b 1/*
9d16b343 2 * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
a9c2df2b 3 *
9d16b343 4 * SPDX-License-Identifier: LGPL-2.1-or-later
a9c2df2b 5 *
a9c2df2b
FD
6 */
7
c9e313bc 8#include "test_class.hpp"
a9c2df2b
FD
9
10volatile int not_a_function = 0;
c30417c1 11
28ab034a 12void test_cxx_function() __attribute__((noinline));
c30417c1 13void test_cxx_function()
a9c2df2b
FD
14{
15 not_a_function += 1;
16}
17
cd9adb8b 18int main()
a9c2df2b
FD
19{
20 test_class my_test_class;
21 /* Call test function. */
22 test_cxx_function();
23
24 /* Call test method. */
25 my_test_class.test_method();
26 return 0;
27}
This page took 0.050382 seconds and 5 git commands to generate.