Fix: tests: add `void` parameter to functions that take no parameters
[lttng-tools.git] / tests / utils / testapp / userspace-probe-elf-binary / userspace-probe-elf-binary.c
CommitLineData
a9c2df2b 1/*
9d16b343 2 * Copyright (C) 2017 Francis Deslauriers <francis.deslauriers@efficios.com>
a9c2df2b 3 *
9d16b343 4 * SPDX-License-Identifier: LGPL-2.1-or-later
a9c2df2b 5 *
a9c2df2b
FD
6 */
7
ef3dfe5d 8#include "foo.h"
a9c2df2b 9volatile int not_a_function = 0;
bcf66e7d 10
b670b304
SM
11void __attribute__ ((noinline)) test_function(void);
12void __attribute__ ((noinline)) test_function(void)
a9c2df2b
FD
13{
14 not_a_function += 1;
15}
bcf66e7d 16
a9c2df2b
FD
17int main(int argc, char *argv[])
18{
19 test_function();
ef3dfe5d 20 dynamic_symbol(42);
a9c2df2b
FD
21 return 0;
22}
This page took 0.037546 seconds and 4 git commands to generate.