X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-cxx-binary%2Fuserspace-probe-elf-cxx-binary.cpp;h=2e169c8fc4fc466d04ee70f0eb479250639d3924;hb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;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..2e169c8fc 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 @@ -8,12 +8,14 @@ #include "test_class.h" 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. */