blob: 374ca03a1fed893f017cc89c632c13d41a2507ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <ccan/tal/str/str.h>
#include <stdlib.h>
#include <stdio.h>
#include <ccan/tal/str/str.c>
#include <ccan/tap/tap.h>
#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();
}
|