diff options
author | otto <> | 2004-08-13 07:21:40 +0000 |
---|---|---|
committer | otto <> | 2004-08-13 07:21:40 +0000 |
commit | f46dcdca21346ce7ba72ef74a44ebf46410aca87 (patch) | |
tree | 28444ac37100779787244a4ce354a6fe37a8aad0 /src | |
parent | 257f9fa1c8da62d7aacb0a6747c804e359d1e6ad (diff) | |
download | openbsd-f46dcdca21346ce7ba72ef74a44ebf46410aca87.tar.gz openbsd-f46dcdca21346ce7ba72ef74a44ebf46410aca87.tar.bz2 openbsd-f46dcdca21346ce7ba72ef74a44ebf46410aca87.zip |
More nasty cases involving back references.
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libc/regex/tests | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/regress/lib/libc/regex/tests b/src/regress/lib/libc/regex/tests index 3c1a51f8b4..9398ae4803 100644 --- a/src/regress/lib/libc/regex/tests +++ b/src/regress/lib/libc/regex/tests | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: tests,v 1.3 2004/04/02 18:35:54 otto Exp $ | 1 | # $OpenBSD: tests,v 1.4 2004/08/13 07:21:40 otto Exp $ |
2 | # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ | 2 | # $NetBSD: tests,v 1.5 1995/04/20 22:40:00 cgd Exp $ |
3 | 3 | ||
4 | # regular expression test set | 4 | # regular expression test set |
@@ -173,6 +173,16 @@ a\(\(b\)*\2\)*d b abbbd abbbd | |||
173 | \([^_]*\)\(_*\1\)* b foo_foo_bar_bar_bar_baz foo_foo foo,_foo | 173 | \([^_]*\)\(_*\1\)* b foo_foo_bar_bar_bar_baz foo_foo foo,_foo |
174 | \([^_]*\)\(_*\1\)* b bar_bar_bar_baz bar_bar_bar bar,_bar | 174 | \([^_]*\)\(_*\1\)* b bar_bar_bar_baz bar_bar_bar bar,_bar |
175 | \([^_]*\)\(_*\1\)* b foo_bar_baz foo foo | 175 | \([^_]*\)\(_*\1\)* b foo_bar_baz foo foo |
176 | \(.*\)\1 b "" "" | ||
177 | \(.*\)\1 b a "" | ||
178 | \(.*\)\1 b aa aa | ||
179 | \(.*\)\1 b aaa aa | ||
180 | \(.*\)\1 b aaaa aaaa | ||
181 | \([^_]*\)\1 b "" "" | ||
182 | \([^_]*\)\1 b a "" | ||
183 | \([^_]*\)\1 b aa aa | ||
184 | \([^_]*\)\1 b aaa aa | ||
185 | \([^_]*\)\1 b aaaa aaaa | ||
176 | 186 | ||
177 | # ordinary repetitions | 187 | # ordinary repetitions |
178 | ab*c & abc abc | 188 | ab*c & abc abc |