]> git.ozlabs.org Git - ccan/blob - ccan/bytestring/test/compile_fail-BYTESTRING-2.c
3c62f94173d354ed41364d3a26b48850a15c7737
[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 #endif
15         printf("%zd %s\n", bs.len, x);
16         return 0;
17 }