#include #include #include #include #include #include "helper.h" /* Empty format string: should still terminate! */ int main(void) { char *str; const char *fmt = ""; plan_tests(1); /* GCC complains about empty format string, complains about non-literal * with no args... */ str = tal_fmt(NULL, fmt, ""); ok1(!strcmp(str, "")); tal_free(str); return exit_status(); }