From 1b8fbbd843ddeb5fc81c9303db9c590a436d499b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 12:10:32 -0700 Subject: progress --- ccan/str/test/compile_ok-STR_MAX_CHARS-static.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ccan/str/test/compile_ok-STR_MAX_CHARS-static.c (limited to 'ccan/str/test/compile_ok-STR_MAX_CHARS-static.c') diff --git a/ccan/str/test/compile_ok-STR_MAX_CHARS-static.c b/ccan/str/test/compile_ok-STR_MAX_CHARS-static.c new file mode 100644 index 0000000..bc6aff7 --- /dev/null +++ b/ccan/str/test/compile_ok-STR_MAX_CHARS-static.c @@ -0,0 +1,8 @@ +#include + +int main(void) +{ + static char str[STR_MAX_CHARS(int)]; + + return str[0] ? 0 : 1; +} -- cgit v1.2.3