1 // commit: 72ed3d47e567b1635a35d3c1d174c8a8b2787e30 2014-07-17
2 // regexec should not crash on non-zero nmatch with REG_NOSUB
11 r
= regcomp(&re
, "abc", REG_NOSUB
);
13 t_error("regcomp failed: %d\n", r
);
14 r
= regexec(&re
, "zyx abc", 1, 0, 0);
16 t_error("regexec failed to match\n");
18 t_error("regexec returned invalid code: %d\n", r
);