aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2013-10-02 15:13:18 +0000
committerTim Shen <timshen@gcc.gnu.org>2013-10-02 15:13:18 +0000
commit756aa0c30268da6b1de3bf6b9b427eefe8520d57 (patch)
tree3a79396240997b064f90d8d8e3db92b75c0fcf6d /libstdc++-v3/testsuite
parent90926a2da5f122aaf28baf379c30d9d2f97d2475 (diff)
downloadgcc-756aa0c30268da6b1de3bf6b9b427eefe8520d57.zip
gcc-756aa0c30268da6b1de3bf6b9b427eefe8520d57.tar.gz
gcc-756aa0c30268da6b1de3bf6b9b427eefe8520d57.tar.bz2
2013-10-02 Tim Shen <timshen91@gmail.com>
* include/bits/regex_compiler.h (_BracketMatcher<>::_M_add_equivalence_class): Implement it correctly. * include/bits/regex_compiler.tcc (_BracketMatcher<>::operator()): Add _M_equiv_set support. * testsuite/28_regex/algorithms/regex_match/extended/ cstring_bracket_01.cc: Add new "[[=a=]]" testcase. From-SVN: r203117
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc b/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc
index 3a4ff31..5d83785 100644
--- a/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc
+++ b/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/cstring_bracket_01.cc
@@ -56,6 +56,11 @@ test01()
VERIFY( std::regex_match("pre/a", re) );
VERIFY( std::regex_match("pre/0", re) );
}
+ {
+ std::regex re("pre/[[=a=]]", std::regex::extended);
+ VERIFY( std::regex_match("pre/a", re) );
+ VERIFY( std::regex_match("pre/A", re) );
+ }
}
int