X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-cxx-binary%2Fuserspace-probe-elf-cxx-binary.cpp;h=ab0f241447b1cda1b7db0b0fe8194a39bb596462;hp=6b30717ae6140104e1f974d0d06a05f10d1e2363;hb=c30417c11fcaf0406c4cfb3a09373c848a86e291;hpb=ca806b0b247f89c62ac628a7779ae84049a8c2d7 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..ab0f24144 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,7 +8,9 @@ #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; }