X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-cxx-binary%2Fuserspace-probe-elf-cxx-binary.cpp;h=544628ff9deee18bdf9e45d4c65f1745277e593c;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=6b30717ae6140104e1f974d0d06a05f10d1e2363;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/utils/testapp/userspace-probe-elf-cxx-binary/userspace-probe-elf-cxx-binary.cpp b/tests/utils/testapp/userspace-probe-elf-cxx-binary/userspace-probe-elf-cxx-binary.cpp index 6b30717ae..544628ff9 100644 --- a/tests/utils/testapp/userspace-probe-elf-cxx-binary/userspace-probe-elf-cxx-binary.cpp +++ b/tests/utils/testapp/userspace-probe-elf-cxx-binary/userspace-probe-elf-cxx-binary.cpp @@ -5,15 +5,17 @@ * */ -#include "test_class.h" +#include "test_class.hpp" volatile int not_a_function = 0; -void __attribute__ ((noinline)) test_cxx_function() + +void test_cxx_function() __attribute__ ((noinline)); +void test_cxx_function() { not_a_function += 1; } -int main(int argc, char *argv[]) +int main(void) { test_class my_test_class; /* Call test function. */