about summary refs log tree commit diff
path: root/posix/bug-regex12.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/bug-regex12.c')
-rw-r--r--posix/bug-regex12.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/posix/bug-regex12.c b/posix/bug-regex12.c
index d5b5ef106e..0ad063ea05 100644
--- a/posix/bug-regex12.c
+++ b/posix/bug-regex12.c
@@ -1,5 +1,5 @@
 /* Regular expression tests.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2002.
 
@@ -32,7 +32,9 @@ struct
   int flags, nmatch;
 } tests[] = {
   { "^<\\([^~]*\\)\\([^~]\\)[^~]*~\\1\\(.\\).*|=.*\\3.*\\2",
-    "<,.8~2,~so-|=-~.0,123456789<><", REG_NOSUB, 0, }
+    "<,.8~2,~so-|=-~.0,123456789<><", REG_NOSUB, 0 },
+  /* In ERE, all carets must be treated as anchors.  */
+  { "a^b", "a^b", REG_EXTENDED, 0 }
 };
 
 int