diff options
author | Tim Shen <timshen91@gmail.com> | 2014-04-24 18:29:21 +0000 |
---|---|---|
committer | Tim Shen <timshen@gcc.gnu.org> | 2014-04-24 18:29:21 +0000 |
commit | 836c42f6ad73f273d5713aaf80a34856efb6e617 (patch) | |
tree | 698be6a5fe0550b881f172e6a9610e64138d0f24 /libstdc++-v3/testsuite/28_regex | |
parent | 0e93c3dc505d1c65ea328b239d93d4a0cc0b7950 (diff) | |
download | gcc-836c42f6ad73f273d5713aaf80a34856efb6e617.zip gcc-836c42f6ad73f273d5713aaf80a34856efb6e617.tar.gz gcc-836c42f6ad73f273d5713aaf80a34856efb6e617.tar.bz2 |
regex_automaton.tcc (_StateSeq<>::_M_clone()): Do _M_alt before _M_next.
2014-04-24 Tim Shen <timshen91@gmail.com>
* include/bits/regex_automaton.tcc (_StateSeq<>::_M_clone()):
Do _M_alt before _M_next.
* testsuite/28_regex/basic_regex/multiple_quantifiers.cc: Add testcases.
From-SVN: r209756
Diffstat (limited to 'libstdc++-v3/testsuite/28_regex')
-rw-r--r-- | libstdc++-v3/testsuite/28_regex/basic_regex/multiple_quantifiers.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/multiple_quantifiers.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/multiple_quantifiers.cc index 5670cbb..8243eea 100644 --- a/libstdc++-v3/testsuite/28_regex/basic_regex/multiple_quantifiers.cc +++ b/libstdc++-v3/testsuite/28_regex/basic_regex/multiple_quantifiers.cc @@ -21,7 +21,10 @@ // Tests multiple consecutive quantifiers #include <regex> +#include <testsuite_hooks.h> +#include <testsuite_regex.h> +using namespace __gnu_test; using namespace std; int @@ -29,5 +32,6 @@ main() { regex re1("a++"); regex re2("(a+)+"); + VERIFY(regex_match_debug("aa", regex("(a)*{3}"))); return 0; } |