diff options
Diffstat (limited to 'posix/bug-regex31.c')
-rw-r--r-- | posix/bug-regex31.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/posix/bug-regex31.c b/posix/bug-regex31.c new file mode 100644 index 0000000000..2d5d6695d4 --- /dev/null +++ b/posix/bug-regex31.c @@ -0,0 +1,16 @@ +#include <mcheck.h> +#include <regex.h> +#include <stdio.h> +#include <sys/types.h> + +int main() +{ + regex_t regex; + int rc; + + mtrace (); + + if ((rc = regcomp (®ex, "([0]", REG_EXTENDED))) + printf ("Error %d (expected)\n", rc); + return 0; +} |