summaryrefslogtreecommitdiff
path: root/ccan/strgrp/test/api_new_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/strgrp/test/api_new_free.c')
-rw-r--r--ccan/strgrp/test/api_new_free.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ccan/strgrp/test/api_new_free.c b/ccan/strgrp/test/api_new_free.c
new file mode 100644
index 00000000..da3575dd
--- /dev/null
+++ b/ccan/strgrp/test/api_new_free.c
@@ -0,0 +1,11 @@
+#include "../test/helpers.h"
+
+int main(void) {
+ struct strgrp *ctx;
+
+ plan_tests(1);
+ create(ctx, DEFAULT_SIMILARITY);
+ strgrp_free(ctx);
+ pass("Successfully initialised strgrp instance");
+ return exit_status();
+}