gcc/libstdc++-v3/testsuite/28_regex
Tim Shen 7ce69e5a71 regex.h (regex_iterator::regex_iterator()): Define end() as _M_pregex == nullptr.
* libstdc++-v3/include/bits/regex.h (regex_iterator::regex_iterator()):
	Define end() as _M_pregex == nullptr.
	* libstdc++-v3/include/bits/regex.tcc (regex_iterator::operator==(),
	regex_iterator::operator++()): Fix operator==() and operator++() to
	look at null-ness of _M_pregex on both sides.
	* testsuite/28_regex/regression.cc: New testcase.

From-SVN: r242025
2016-11-09 22:11:32 +00:00
..
algorithms container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
basic_regex container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
constants container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
headers/regex Update copyright years. 2016-01-04 15:30:50 +01:00
iterators container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
match_results container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
regex_error container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
requirements Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
sub_match container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
traits container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
init-list.cc container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
range_access.cc Use effective-target instead of -std options 2016-08-26 12:41:37 +01:00
regression.cc regex.h (regex_iterator::regex_iterator()): Define end() as _M_pregex == nullptr. 2016-11-09 22:11:32 +00:00