diff options
Diffstat (limited to 'tests/library/testlib.c')
-rw-r--r-- | tests/library/testlib.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/library/testlib.c b/tests/library/testlib.c index b240819..cd42d1a 100644 --- a/tests/library/testlib.c +++ b/tests/library/testlib.c @@ -4,8 +4,22 @@ #define DLLEXPORT #endif +typedef int (*multiply_by_two_func)( int ); + DLLEXPORT int multiply_by_two( int a ); int multiply_by_two( int a ) { return a * 2; } + +extern int DLLEXPORT seven = 7; + +typedef struct { + int major; + int minor; + multiply_by_two_func func; +} module_descriptor_t; + +extern DLLEXPORT module_descriptor_t mod_descr = { + 1, 0, &multiply_by_two +}; |