1 #include <ccan/array_size/array_size.h>
8 int check_parameter(const struct foo *array);
9 int check_parameter(const struct foo *array)
12 return (ARRAY_SIZE(array) == 4);
13 #if !HAVE_TYPEOF || !HAVE_BUILTIN_TYPES_COMPATIBLE_P
14 #error "Unfortunately we don't fail if _array_size_chk is a noop."
17 return sizeof(array) == 4 * sizeof(struct foo);
21 int main(int argc, char *argv[])
23 return check_parameter(NULL);