diff options
Diffstat (limited to 'gnulib-local/tests/test-moo-root.oo.c')
-rw-r--r-- | gnulib-local/tests/test-moo-root.oo.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gnulib-local/tests/test-moo-root.oo.c b/gnulib-local/tests/test-moo-root.oo.c new file mode 100644 index 0000000..00a72fe --- /dev/null +++ b/gnulib-local/tests/test-moo-root.oo.c @@ -0,0 +1,19 @@ +#include <config.h> + +/* Specification. */ +#include "test-moo-root.h" + +#include <stdio.h> + +#pragma implementation + +int root::write (root_t x, void *buf, size_t len) +{ + fwrite (buf, 1, len, stdout); + return 0; +} + +void root::do_free (root_t x) +{ + free (x); +} |