]> git.ozlabs.org Git - ccan/blob - ccan/bytestring/test/compile_fail-BYTESTRING-2.c
rfc822: Move check_header into helper.c
[ccan] / ccan / bytestring / test / compile_fail-BYTESTRING-2.c
1 #include <stdio.h>
2
3 #include <ccan/bytestring/bytestring.h>
4
5 int main(int argc, char *argv[])
6 {
7         struct bytestring bs;
8         const char *x = "abcde";
9
10 #ifdef FAIL
11         bs = BYTESTRING(x);
12 #endif
13         printf("%zd %s\n", bs.len, x);
14         return 0;
15 }