summaryrefslogtreecommitdiff
path: root/libmisc/tests/test_macro.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-31 11:41:42 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-02 14:53:33 -0600
commitf428acdaf8c8851323391a949f0a9cbcf521adda (patch)
tree263d6908bba744232083622428661a90fc40d5f4 /libmisc/tests/test_macro.c
parentfc827473da84f4dcd34aec3e4581d998c783f391 (diff)
libmisc: macro.h, wrap-cc: Implement LM_DEFAPPEND
Diffstat (limited to 'libmisc/tests/test_macro.c')
-rw-r--r--libmisc/tests/test_macro.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libmisc/tests/test_macro.c b/libmisc/tests/test_macro.c
index 5157820..6810005 100644
--- a/libmisc/tests/test_macro.c
+++ b/libmisc/tests/test_macro.c
@@ -178,5 +178,14 @@ int main() {
free(act_suffix);
}
+ printf("== LM_DEFAPPEND ===========================================\n");
+ LM_DEFAPPEND(mylist, a);
+ LM_DEFAPPEND(mylist,
+ b);
+ {
+ const char *str = LM_STR_(mylist);
+ test_assert(strcmp(str, "a b") == 0);
+ }
+
return 0;
}