From 59146c35832695bc944197115986f8e7f0dea947 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 19 Aug 2003 14:24:14 +0000 Subject: Update the tests a little bit --- test/dlopen/libtest2.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'test/dlopen/libtest2.c') diff --git a/test/dlopen/libtest2.c b/test/dlopen/libtest2.c index 448a5d902..b2eb02e88 100644 --- a/test/dlopen/libtest2.c +++ b/test/dlopen/libtest2.c @@ -6,33 +6,32 @@ extern int __pthread_mutex_init (void); void __attribute__((constructor)) libtest2_ctor(void) { - printf("I am the libtest2 constructor!\n"); + printf("libtest2: constructor!\n"); } void __attribute__((destructor)) libtest2_dtor(void) { - printf("I am the libtest2 destructor!\n"); + printf("libtest2: destructor!\n"); } void function1(void) { - printf("libtest2: I am overriding function1!\n"); + printf("libtest2: I am function1!\n"); } void __attribute__((weak)) function2(void) { - printf("libtest2: I am function2 from libtest2!\n"); + printf("libtest2: I am weak function2!\n"); } int libtest2_func(const char *s) { + printf( "libtest2: function1 = %p\n" + "libtest2: function2 = %p\n", + function1, function2); function1(); function2(); - printf( "libtest2: function1 = %p\n" - "libtest2: function2 = %p\n" - "libtest2: message from main() = '%s'\n", - function1, function2, s); return 0; } -- cgit v1.2.3