From bf8c59996b3fb2a940827d12438a9e18eca6db4c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 5 Oct 2017 13:42:19 -0800 Subject: Update for new superblock options; makefile improvements --- ccan/array_size/test/compile_fail-function-param.c | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 ccan/array_size/test/compile_fail-function-param.c (limited to 'ccan/array_size/test/compile_fail-function-param.c') diff --git a/ccan/array_size/test/compile_fail-function-param.c b/ccan/array_size/test/compile_fail-function-param.c deleted file mode 100644 index 48697e04..00000000 --- a/ccan/array_size/test/compile_fail-function-param.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -struct foo { - unsigned int a, b; -}; - -int check_parameter(const struct foo *array); -int check_parameter(const struct foo *array) -{ -#ifdef FAIL - return (ARRAY_SIZE(array) == 4); -#if !HAVE_TYPEOF || !HAVE_BUILTIN_TYPES_COMPATIBLE_P -#error "Unfortunately we don't fail if _array_size_chk is a noop." -#endif -#else - return sizeof(array) == 4 * sizeof(struct foo); -#endif -} - -int main(int argc, char *argv[]) -{ - return check_parameter(NULL); -} -- cgit v1.2.3