summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-08-13 07:21:40 +0000
committerotto <otto@openbsd.org>2004-08-13 07:21:40 +0000
commit05c0ab402d14e57d8e0d1afeab6d37227639048c (patch)
treed18b76e963de9cdcdb69acd88838b45d6d397526
parentLeave stderr alone for the moment (diff)
downloadwireguard-openbsd-05c0ab402d14e57d8e0d1afeab6d37227639048c.tar.xz
wireguard-openbsd-05c0ab402d14e57d8e0d1afeab6d37227639048c.zip
More nasty cases involving back references.
-rw-r--r--regress/lib/libc/regex/tests12
1 files changed, 11 insertions, 1 deletions
diff --git a/regress/lib/libc/regex/tests b/regress/lib/libc/regex/tests
index 3c1a51f8b4f..9398ae48033 100644
--- a/regress/lib/libc/regex/tests
+++ b/regress/lib/libc/regex/tests
@@ -1,4 +1,4 @@
-# $OpenBSD: tests,v 1.3 2004/04/02 18:35:54 otto Exp $
+# $OpenBSD: tests,v 1.4 2004/08/13 07:21:40 otto Exp $
# $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $
# regular expression test set
@@ -173,6 +173,16 @@ a\(\(b\)*\2\)*d b abbbd abbbd
\([^_]*\)\(_*\1\)* b foo_foo_bar_bar_bar_baz foo_foo foo,_foo
\([^_]*\)\(_*\1\)* b bar_bar_bar_baz bar_bar_bar bar,_bar
\([^_]*\)\(_*\1\)* b foo_bar_baz foo foo
+\(.*\)\1 b "" ""
+\(.*\)\1 b a ""
+\(.*\)\1 b aa aa
+\(.*\)\1 b aaa aa
+\(.*\)\1 b aaaa aaaa
+\([^_]*\)\1 b "" ""
+\([^_]*\)\1 b a ""
+\([^_]*\)\1 b aa aa
+\([^_]*\)\1 b aaa aa
+\([^_]*\)\1 b aaaa aaaa
# ordinary repetitions
ab*c & abc abc