summaryrefslogtreecommitdiff
path: root/posix/bug-regex22.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/bug-regex22.c')
-rw-r--r--posix/bug-regex22.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/posix/bug-regex22.c b/posix/bug-regex22.c
index 4d8357c27b..1636202d36 100644
--- a/posix/bug-regex22.c
+++ b/posix/bug-regex22.c
@@ -97,6 +97,16 @@ main (void)
memset (&re, 0, sizeof (re));
re.translate = trans;
+ s = re_compile_pattern ("[[:DIGIT:]]", 11, &re);
+ if (s == NULL)
+ {
+ printf ("compilation of \"[[:DIGIT:]]\" pattern unexpectedly succeeded: %s\n",
+ s);
+ result = 1;
+ }
+
+ memset (&re, 0, sizeof (re));
+ re.translate = trans;
s = re_compile_pattern ("[[:DIGIT:]]", 2, &re);
if (s == NULL)
{