value.cc: Add test.

2013-12-10  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/20_util/is_base_of/value.cc: Add test.

	* include/std/fstream: Tiny formatting tweak.

From-SVN: r205851
This commit is contained in:
Paolo Carlini 2013-12-10 09:48:50 +00:00 committed by Paolo Carlini
parent ed9cbf7c9c
commit a0d026d943
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-12-10 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/is_base_of/value.cc: Add test.
* include/std/fstream: Tiny formatting tweak.
2013-12-09 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/59427

View File

@ -396,8 +396,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void
_M_set_buffer(streamsize __off)
{
const bool __testin = _M_mode & ios_base::in;
const bool __testout = (_M_mode & ios_base::out
const bool __testin = _M_mode & ios_base::in;
const bool __testout = (_M_mode & ios_base::out
|| _M_mode & ios_base::app);
if (__testin && __off > 0)

View File

@ -47,6 +47,8 @@ void test01()
using namespace __gnu_test;
// Positive tests.
static_assert(test_relationship<is_base_of, volatile ClassType,
ClassType>(true), "");
static_assert(test_relationship<is_base_of, AbstractClass,
AbstractClass>(true), "");
static_assert(test_relationship<is_base_of, ClassType,