From 400925d81cc92de52efe6cad6dcc33794262119c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Feb 2006 02:48:22 +0000 Subject: grab a bunch of tests from glibc --- test/string/bug-strspn1.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/string/bug-strspn1.c (limited to 'test/string/bug-strspn1.c') diff --git a/test/string/bug-strspn1.c b/test/string/bug-strspn1.c new file mode 100644 index 000000000..a657bafc4 --- /dev/null +++ b/test/string/bug-strspn1.c @@ -0,0 +1,19 @@ +/* Test case by Joseph S. Myers . */ +#undef __USE_STRING_INLINES +#define __USE_STRING_INLINES +#include +#include +#include + +int +main (void) +{ + const char *a = "abc"; + const char *b = a; + + strspn (b++, ""); + if (b != a + 1) + return 1; + + return 0; +} -- cgit v1.2.3