Re: [PATCH] Fix non-portable std::regex test and test more cases

2016-07-31 Thread Jonathan Wakely
On 31/07/16 19:46 +0100, Jonathan Wakely wrote: diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/raw_string.cc index 5625653..758f216 100644 --- a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/

[PATCH] Fix non-portable std::regex test and test more cases

2016-07-31 Thread Jonathan Wakely
This test uses \n inside a raw string literal, which is not a newline but just a backslash followed by 'n', and that's not a valid POSIX BRE so the test fails when run with -std=c++11 rather than -std=gnu++11. I've replaced \n with newlines, and also tested the "expected fail" string, which works