Merge pull request #616 from andlaus/test_for_extended_std__regex
use extended regular expressions in the test for std::regex
This commit is contained in:
commit
98523baca5
@ -133,7 +133,7 @@ CHECK_CXX_SOURCE_RUNS("
|
|||||||
#include <regex>
|
#include <regex>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
std::regex r(\"AB.*|BC+\");
|
std::regex r(\"AB.*|BC+\", std::regex::extended);
|
||||||
if (!std::regex_match(\"AB\", r))
|
if (!std::regex_match(\"AB\", r))
|
||||||
return 1;
|
return 1;
|
||||||
if (!std::regex_match(\"ABC\", r))
|
if (!std::regex_match(\"ABC\", r))
|
||||||
|
Loading…
Reference in New Issue
Block a user