diff options
author | Ulrich Drepper <drepper@gmail.com> | 2010-10-11 12:34:53 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-10-11 12:34:53 -0400 |
commit | ef06edbee6463061a7f3dcbd2f56a625b41a4810 (patch) | |
tree | 88f21fb5581bef4906d31c491add0f05861a579c /posix/bug-regex31.c | |
parent | a129c80d54ec951567caa8c1b042275422d5f367 (diff) | |
download | glibc-ef06edbee6463061a7f3dcbd2f56a625b41a4810.zip glibc-ef06edbee6463061a7f3dcbd2f56a625b41a4810.tar.gz glibc-ef06edbee6463061a7f3dcbd2f56a625b41a4810.tar.bz2 |
Test case for last regex problem.
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 0000000..2d5d669 --- /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; +} |