(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
28_regex/
algorithms/
regex_replace/
char/
103664.cc
// { dg-do run { target c++11 } }
// { dg-timeout-factor 2 }

#include <regex>
#include <testsuite_hooks.h>

int main()
{
  // PR libstdc++/103664
  std::string a = regex_replace("123", std::regex("2"), std::string("a\0b", 3));
  VERIFY( a == std::string("1a\0b3", 5) );
}