mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 23:35:00 +08:00
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>
|
||||
|
||||
PR libstdc++/59427
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user