diff options
author | hobbs <hobbs@noemail.net> | 2007-12-23 21:29:40 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2007-12-23 21:29:40 (GMT) |
commit | 430d918560649ece9361d5e811fa1fab81ff8873 (patch) | |
tree | 90b1e3cd3e2b5290c96cf7533067296260067ca9 /tests/regexpComp.test | |
parent | e60f7fcd1f27d5f4ad4d522a25ce07201c290c69 (diff) | |
download | tcl-430d918560649ece9361d5e811fa1fab81ff8873.zip tcl-430d918560649ece9361d5e811fa1fab81ff8873.tar.gz tcl-430d918560649ece9361d5e811fa1fab81ff8873.tar.bz2 |
* generic/tclCompCmds.c (TclCompileRegexpCmd): TCL_REG_NOSUB cannot
* tests/regexp.test (regexp-22.2): be used because it
* tests/regexpComp.test: [Bug 1857126] disallows backrefs.
FossilOrigin-Name: 3abe8cff9789adc21fb60e57f475687bd613b3b9
Diffstat (limited to 'tests/regexpComp.test')
-rw-r--r-- | tests/regexpComp.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/regexpComp.test b/tests/regexpComp.test index 8460006..c104a69 100644 --- a/tests/regexpComp.test +++ b/tests/regexpComp.test @@ -802,6 +802,18 @@ test regexpComp-21.11 {regexp command compiling tests} { } } {0 {}} +test regexpComp-22.1 {Bug 1810038} { + evalInProc { + regexp ($|^X)* {} + } +} 1 + +test regexpComp-22.2 {regexp compile and backrefs, Bug 1857126} { + evalInProc { + regexp -- {([bc])\1} bb + } +} 1 + set i 0 foreach {str exp result} { foo ^foo 1 |