A few more tests for posix extended alternation

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@109107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-07-22 14:12:20 +00:00
parent aa69808da9
commit 1371b2e56e
2 changed files with 45 additions and 10 deletions

View File

@@ -1596,10 +1596,10 @@ void
__alternate<_CharT>::__exec_split(bool __second, __state& __s) const
{
__s.__do_ = __state::__accept_but_not_consume;
if (!__second)
__s.__node_ = this->first();
else
if (__second)
__s.__node_ = this->second();
else
__s.__node_ = this->first();
}
// __begin_marked_subexpression