repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Test case for last regex problem.
[glibc.git]
/
posix
/
bug-regex31.c
blob
2d5d6695d4250b4b4eed69411494dca7c359c5a3
1
#include <mcheck.h>
2
#include <regex.h>
3
#include <stdio.h>
4
#include <sys/types.h>
5
6
int
main
()
7
{
8
regex_t regex
;
9
int
rc
;
10
11
mtrace
();
12
13
if
((
rc
=
regcomp
(&
regex
,
"([0]"
,
REG_EXTENDED
)))
14
printf
(
"Error %d (expected)
\n
"
,
rc
);
15
return
0
;
16
}