- t_error("regcomp(%s) returned %d (%s) wanted REG_ESUBREG\n", pat, n, buf);
+ t_error("regcomp(%s) returned %d (%s) wanted 0\n", pat, n, buf);
+ }
+ n = regexec(&r, "a0", 0, 0, 0);
+ if (n) {
+ regerror(n, &r, buf, sizeof buf);
+ t_error("regexec(/%s/ ~ \"a0\") returned %d (%s), wanted 0\n",
+ pat, n, buf);