diff options
Diffstat (limited to 'test/ldso/howdy.c')
-rw-r--r-- | test/ldso/howdy.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/ldso/howdy.c b/test/ldso/howdy.c index 343c81d7c..e2724068e 100644 --- a/test/ldso/howdy.c +++ b/test/ldso/howdy.c @@ -1,18 +1,23 @@ +#include <pthread.h> #include <stdio.h> +extern int __pthread_return_0 (void); + int howdy(const char *s) { - return printf("howdy: %s\n", s); + return printf("howdy: __pthread_return_0 = %p\n" + "howdy: pthread_cond_signal = %p\n", + __pthread_return_0, pthread_cond_signal); } void __attribute__((constructor)) howdy_ctor(void) { - printf("I am the libhowdy constructor!\n"); + printf("I am the libhowdy constructor!\n"); } void __attribute__((destructor)) howdy_dtor(void) { - printf("I am the libhowdy destructor!\n"); + printf("I am the libhowdy destructor!\n"); } |