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, 0);
19 if (n
!= REG_NOMATCH
) {
20 regerror(n
, &r
, buf
, sizeof buf
);
21 t_error("regexec(/[^aa-z]/ ~ \"k\") returned %d (%s), wanted REG_NOMATCH\n",