| 1 |
// { dg-do run { target c++11 } } |
| 2 |
// { dg-timeout-factor 2 } |
| 3 |
|
| 4 |
#include <regex> |
| 5 |
#include <testsuite_hooks.h> |
| 6 |
|
| 7 |
int main() |
| 8 |
{ |
| 9 |
// PR libstdc++/103664 |
| 10 |
std::string a = regex_replace("123", std::regex("2"), std::string("a\0b", 3)); |
| 11 |
VERIFY( a == std::string("1a\0b3", 5) ); |
| 12 |
} |