summaryrefslogtreecommitdiff
path: root/ccan/str/test/compile_fail-STR_MAX_CHARS.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 22:28:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 22:31:48 -0700
commit9593fc545950782ed75f12f53238b07885559b2b (patch)
tree9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/str/test/compile_fail-STR_MAX_CHARS.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/str/test/compile_fail-STR_MAX_CHARS.c')
-rw-r--r--ccan/str/test/compile_fail-STR_MAX_CHARS.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/ccan/str/test/compile_fail-STR_MAX_CHARS.c b/ccan/str/test/compile_fail-STR_MAX_CHARS.c
deleted file mode 100644
index 8e0fd2e..0000000
--- a/ccan/str/test/compile_fail-STR_MAX_CHARS.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <ccan/str/str.h>
-
-struct s {
- int val;
-};
-
-int main(void)
-{
- struct s
-#ifdef FAIL
-#if !HAVE_TYPEOF
- #error We need typeof to check STR_MAX_CHARS.
-#endif
-#else
- /* A pointer is OK. */
- *
-#endif
- val;
- char str[STR_MAX_CHARS(val)];
-
- str[0] = '\0';
- return str[0] ? 0 : 1;
-}