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:
16
posix/bug-regex31.c
Normal file
16
posix/bug-regex31.c
Normal 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 (®ex, "([0]", REG_EXTENDED)))
|
||||
printf ("Error %d (expected)\n", rc);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user