about summary refs log tree commit diff
path: root/posix/bug-regex31.c
blob: 2d5d6695d4250b4b4eed69411494dca7c359c5a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}