liblttng-ctl: use export list to define exported symbols
[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
8#include "test_class.h"
9
10volatile int not_a_function = 0;
11void __attribute__ ((noinline)) test_cxx_function()
12{
13 not_a_function += 1;
14}
15
16int main(int argc, char *argv[])
17{
18 test_class my_test_class;
19 /* Call test function. */
20 test_cxx_function();
21
22 /* Call test method. */
23 my_test_class.test_method();
24 return 0;
25}
This page took 0.030753 seconds and 4 git commands to generate.