1
0
Fork 0
qemu/roms/skiboot/ccan/str/test/compile_fail-strrchr.c
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

18 lines
256 B
C

#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 = strrchr(str, 'l');
return ret ? 0 : 1;
}