glibc/posix/bug-regex31.c

17 lines
241 B
C
Raw Normal View History

2010-10-11 18:34:53 +02:00
#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;
}