From ab8539e23ba891f966747b98d49a8ab5001e0245 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 19 May 2010 09:04:45 +0200 Subject: cleaned up --- tests/library/test_loader.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c index 7e5fa28..a76b093 100644 --- a/tests/library/test_loader.c +++ b/tests/library/test_loader.c @@ -41,14 +41,15 @@ int main( void ) { /* fetch a known function symbol (multiply_by_two), for the reasons why naive * casting doesn't work, see: - * http://en.wikipedia.org/wiki/Dynamic_loading#cite_note-gcc-strict-aliasing-5 */ + * http://en.wikipedia.org/wiki/Dynamic_loading + */ symbol = wolf_library_get( library, "multiply_by_two", &error ); alias.obj = symbol; func = alias.func; /* call it */ - res = func( 2 ); - assert( res == 4 ); + res = func( 7 ); + assert( res == 14 ); /* close library */ error = wolf_library_unload( library ); -- cgit v1.2.3-54-g00ecf