git.samba.org
/
samba.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
deefef6542bd3bef6bee74b0bd5ba7309288f03c
[samba.git]
/
lib
/
ccan
/
str
/
test
/
compile_fail-strstr.c
1
#define CCAN_STR_DEBUG 1
2
#include <ccan/str/str.h>
3
4
int main(int argc, char *argv[])
5
{
6
#ifdef FAIL
7
#if !HAVE_TYPEOF
8
#error We need typeof to check strstr.
9
#endif
10
#else
11
const
12
#endif
13
char *ret;
14
const char *str = "hello";
15
16
ret = strstr(str, "hell");
17
return ret ? 0 : 1;
18
}