summaryrefslogtreecommitdiff
path: root/ccan/array_size/test/compile_fail.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-10-05 13:42:19 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-10-08 10:25:36 -0800
commitbf8c59996b3fb2a940827d12438a9e18eca6db4c (patch)
tree86366ab663beeeeec3554ce3407159aaacd70714 /ccan/array_size/test/compile_fail.c
parent85ee972555948337bb1a58f0702a4da95db6758f (diff)
Update for new superblock options; makefile improvements
Diffstat (limited to 'ccan/array_size/test/compile_fail.c')
-rw-r--r--ccan/array_size/test/compile_fail.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ccan/array_size/test/compile_fail.c b/ccan/array_size/test/compile_fail.c
deleted file mode 100644
index 37d315f2..00000000
--- a/ccan/array_size/test/compile_fail.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <ccan/array_size/array_size.h>
-
-int main(int argc, char *argv[8])
-{
- char array[100];
-#ifdef FAIL
- return ARRAY_SIZE(argv) + ARRAY_SIZE(array);
-#if !HAVE_TYPEOF || !HAVE_BUILTIN_TYPES_COMPATIBLE_P
-#error "Unfortunately we don't fail if _array_size_chk is a noop."
-#endif
-#else
- return ARRAY_SIZE(array);
-#endif
-}