1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Test case for last regex problem.

This commit is contained in:
Ulrich Drepper
2010-10-11 12:34:53 -04:00
parent a129c80d54
commit ef06edbee6
3 changed files with 27 additions and 2 deletions

16
posix/bug-regex31.c Normal file
View File

@ -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 (&regex, "([0]", REG_EXTENDED)))
printf ("Error %d (expected)\n", rc);
return 0;
}