mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
ed9cbf7c9c
commit
a0d026d943
|
|
@ -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>
|
2013-12-09 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
PR libstdc++/59427
|
PR libstdc++/59427
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue