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