diff options
Diffstat (limited to 'tests/run-make/extern-fn-generic/test.c')
-rw-r--r-- | tests/run-make/extern-fn-generic/test.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run-make/extern-fn-generic/test.c b/tests/run-make/extern-fn-generic/test.c new file mode 100644 index 000000000..a8504ff2a --- /dev/null +++ b/tests/run-make/extern-fn-generic/test.c @@ -0,0 +1,16 @@ +#include <stdint.h> + +typedef struct TestStruct { + uint8_t x; + int32_t y; +} TestStruct; + +typedef int callback(TestStruct s); + +uint32_t call(callback *c) { + TestStruct s; + s.x = 'a'; + s.y = 3; + + return c(s); +} |