Commit a0d026d9 by Paolo Carlini Committed by Paolo Carlini

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
parent ed9cbf7c
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> 2013-12-09 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/59427 PR libstdc++/59427
......
...@@ -396,8 +396,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -396,8 +396,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
void void
_M_set_buffer(streamsize __off) _M_set_buffer(streamsize __off)
{ {
const bool __testin = _M_mode & ios_base::in; const bool __testin = _M_mode & ios_base::in;
const bool __testout = (_M_mode & ios_base::out const bool __testout = (_M_mode & ios_base::out
|| _M_mode & ios_base::app); || _M_mode & ios_base::app);
if (__testin && __off > 0) if (__testin && __off > 0)
......
...@@ -47,6 +47,8 @@ void test01() ...@@ -47,6 +47,8 @@ void test01()
using namespace __gnu_test; using namespace __gnu_test;
// Positive tests. // Positive tests.
static_assert(test_relationship<is_base_of, volatile ClassType,
ClassType>(true), "");
static_assert(test_relationship<is_base_of, AbstractClass, static_assert(test_relationship<is_base_of, AbstractClass,
AbstractClass>(true), ""); AbstractClass>(true), "");
static_assert(test_relationship<is_base_of, ClassType, static_assert(test_relationship<is_base_of, ClassType,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment