-#serial 14
+#serial 15
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
if (re_match (®ex, "an", 2, 0, ®s) != 2)
exit (1);
+ memset (®ex, 0, sizeof (regex));
+ s = re_compile_pattern ("x", 1, ®ex);
+ if (s)
+ exit (1);
+
+ /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
+ work with a negative RANGE argument. */
+ if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
+ exit (1);
+
exit (0);
}
],