X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2Fuserspace-probe-elf-binary.c;fp=tests%2Futils%2Ftestapp%2Fuserspace-probe-elf-binary%2Fuserspace-probe-elf-binary.c;h=8488c8a3940ffb9770ca94cba79f553db6d22c9d;hp=a9dfb22b4cccc1ae7cd679257cba77a8b0b700c6;hb=bcf66e7d327496653738061614900f9828553432;hpb=701a99d1cf638273320db3ce52cf52816129d95a diff --git a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c index a9dfb22b4..8488c8a39 100644 --- a/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c +++ b/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c @@ -18,10 +18,13 @@ #include "foo.h" volatile int not_a_function = 0; -void __attribute__ ((noinline)) test_function() + +void __attribute__ ((noinline)) test_function(); +void __attribute__ ((noinline)) test_function() { not_a_function += 1; } + int main(int argc, char *argv[]) { test_function();