# HG changeset patch # User Colin Macdonald # Date 1516041090 28800 # Node ID 4a4a8b2a5bf2aeca01207d0e0b09bc27da4787d2 # Parent 3e17190dfaea36a024d0cb8cc0911f5b7f3cfda7 Test for incorrect regexprep on ARM platforms (bug #52810). * regexp.cc (regexprep): Add BIST test. diff -r 3e17190dfaea -r 4a4a8b2a5bf2 libinterp/corefcn/regexp.cc --- a/libinterp/corefcn/regexp.cc Mon Jan 15 08:08:32 2018 -0800 +++ b/libinterp/corefcn/regexp.cc Mon Jan 15 10:31:30 2018 -0800 @@ -1516,4 +1516,8 @@ %!assert (regexprep ("\n", '\n', "X"), "X") %!assert (regexprep ("\n", "\n", "X"), "X") + +## Empty matches were broken on ARM architecture +%!test <*52810> +%! assert (strcmp (regexprep ("\nabc", "^(\t*)(abc)$", "$1$2", "lineanchors"), "\nabc")) */