1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00
samba-mirror/lib/ccan/str/test/compile_fail-strrchr.c
Rusty Russell 754c677b0b lib: import ccan modules for tdb2
Imported from git://git.ozlabs.org/~ccan/ccan init-1161-g661d41f

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:34 +02:00

19 lines
274 B
C

#define CCAN_STR_DEBUG 1
#include <ccan/str/str.h>
int main(int argc, char *argv[])
{
#ifdef FAIL
#if !HAVE_TYPEOF
#error We need typeof to check strstr.
#endif
#else
const
#endif
char *ret;
const char *str = "hello";
ret = strrchr(str, 'l');
return ret ? 0 : 1;
}