diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-21 00:17:44 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-21 00:17:44 -0600 |
| commit | 22d8181073621102cf32c56b08a29bd4dc4f459a (patch) | |
| tree | bfbe455535a92f5a2e8ac021acc4fd7fe657761d /tests/include | |
| parent | 783cf70fbf0ac036289bc6d96294a916c1b063a3 (diff) | |
| download | nimterop-22d8181073621102cf32c56b08a29bd4dc4f459a.tar.gz nimterop-22d8181073621102cf32c56b08a29bd4dc4f459a.zip | |
Fix #50 - ptr object to pointer
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/test.c | 4 | ||||
| -rw-r--r-- | tests/include/test.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/include/test.c b/tests/include/test.c index 3a59ffc..162645c 100644 --- a/tests/include/test.c +++ b/tests/include/test.c @@ -54,4 +54,8 @@ float test_call_param8(int *param1) { *param1 = 5 * *param1; return 1.0 * *param1; +} + +void *test_call9() { + return NULL; }
\ No newline at end of file diff --git a/tests/include/test.h b/tests/include/test.h index f450814..6c62e2f 100644 --- a/tests/include/test.h +++ b/tests/include/test.h @@ -1,3 +1,5 @@ +#include <stddef.h> + #ifdef __cplusplus extern "C" { #endif @@ -81,6 +83,7 @@ typedef struct struct5 { int (*tci)(); struct STRUCT1 (*tcp)(int); float (*tcp8)(int *i); + void *(*tcv)(); } STRUCT5; union UNION1 { @@ -102,6 +105,7 @@ union UNION1 test_call_param5(float param1); unsigned char test_call_param6(UNION2 param1); int test_call_param7(union UNION1 param1); float test_call_param8(int *param1); +void *test_call9(); #ifdef __cplusplus } |
