1 // negated overlapping ranges in a regex bracket
2 // were not handled correctly by tre
12 n = regcomp(&r, "[^aa-z]", 0);
14 regerror(n, &r, buf, sizeof buf);
15 t_error("regcomp returned %d (%s)\n", n, buf);
18 n = regexec(&r, "k", 0, 0, REG_NOSUB);
20 t_error("regexec returned %d, [^aa-z] must not match on \"k\"\n", n);