Sign in
qemu
/
skiboot
/
adf868c64ba7a86b64f45218cf4ca29c3f29f9d1
/
.
/
ccan
/
str
/
test
/
compile_fail-strstr.c
blob: 7bd8ac22f13b83911971f747661fd08e40cdcfdf [
file
] [
log
] [
blame
]
#define
CCAN_STR_DEBUG
1
#include
<ccan/str/str.h>
int
main
(
void
)
{
#ifdef
FAIL
#if !HAVE_TYPEOF
#error
We
need
typeof
to check strstr
.
#endif
#else
const
#endif
char
*
ret
;
const
char
*
str
=
"hello"
;
ret
=
strstr
(
str
,
"hell"
);
return
ret
?
0
:
1
;
}