1 // { dg-do run { target c++11 } }
2 // { dg-timeout-factor 2 }
5 #include <testsuite_hooks.h>
12 VERIFY( sm
.size() == 0 );
13 VERIFY( sm
.begin() == sm
.end() ); // PR libstdc++/83600
15 bool matched
= std::regex_match("a", sm
, std::regex("b"));
19 VERIFY( sm
.size() == 0 );
20 VERIFY( sm
.begin() == sm
.end() ); // PR libstdc++/102667
22 matched
= std::regex_match("a", sm
, std::regex("a"));
25 VERIFY( ! sm
.empty() );
26 VERIFY( sm
.size() == 1 );
27 VERIFY( (sm
.end() - sm
.begin()) == 1 );
29 matched
= std::regex_search("abcd", sm
, std::regex("(b)(c)"));
32 VERIFY( ! sm
.empty() );
33 VERIFY( sm
.size() == 3 );
34 VERIFY( (sm
.end() - sm
.begin()) == 3 );