summaryrefslogtreecommitdiff
path: root/tests/library/test_loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/library/test_loader.c')
-rw-r--r--tests/library/test_loader.c7
1 files changed, 4 insertions, 3 deletions
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 );