updated to 64bit crc version of ccan crc
[httpd-crcsyncproxy.git] / ccan / array_size / test / compile_fail-function-param.c
blob283646f871a771af54893fb4de913e1a7b43340f
1 #include <ccan/array_size/array_size.h>
2 #include <stdlib.h>
4 struct foo {
5 unsigned int a, b;
6 };
8 int check_parameter(const struct foo array[4]);
9 int check_parameter(const struct foo array[4])
11 #ifdef FAIL
12 return (ARRAY_SIZE(array) == 4);
13 #else
14 return sizeof(array) == 4 * sizeof(struct foo);
15 #endif
18 int main(int argc, char *argv[])
20 return check_parameter(NULL);