]> git.ozlabs.org Git - ccan/blob - ccan/bytestring/test/compile_fail-BYTESTRING.c
bytestring: Add bytestring_index and bytestring_rindex() functions
[ccan] / ccan / bytestring / test / compile_fail-BYTESTRING.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
11         bs = BYTESTRING(
12 #ifdef FAIL
13                 argv[0]
14 #else
15                 "literal"
16 #endif
17 );
18         printf("%zd\n", bs.len);
19         return 0;
20 }