mirror of git://gcc.gnu.org/git/gcc.git
Run std::ios_base enum tests for C++11 and up
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Make test supported for C++11 and later. * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise. * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise. From-SVN: r238939
This commit is contained in:
parent
8ed49fab92
commit
9b46e4d6dd
|
|
@ -1,3 +1,10 @@
|
|||
2016-08-01 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Make test
|
||||
supported for C++11 and later.
|
||||
* testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
|
||||
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
|
||||
|
||||
2016-08-01 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-options "-Wall" { target *-*-* } }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-options "-Wall" }
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2004-2016 Free Software Foundation, Inc.
|
||||
|
|
@ -75,6 +75,7 @@ case_labels(bitmask_type b)
|
|||
case ~__INT_MAX__:
|
||||
break;
|
||||
}
|
||||
static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
|
||||
using underlying_type = std::underlying_type<bitmask_type>::type;
|
||||
static_assert( sizeof(underlying_type) == sizeof(int),
|
||||
"underlying type has same range of values as int");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-options "-Wall" { target *-*-* } }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-options "-Wall" }
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2004-2016 Free Software Foundation, Inc.
|
||||
|
|
@ -47,6 +47,7 @@ case_labels(bitmask_type b)
|
|||
case ~__INT_MAX__:
|
||||
break;
|
||||
}
|
||||
static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
|
||||
using underlying_type = std::underlying_type<bitmask_type>::type;
|
||||
static_assert( sizeof(underlying_type) == sizeof(int),
|
||||
"underlying type has same range of values as int");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// { dg-do compile }
|
||||
// { dg-options "-Wall" { target *-*-* } }
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-options "-Wall" }
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2004-2016 Free Software Foundation, Inc.
|
||||
|
|
@ -51,6 +51,7 @@ case_labels(bitmask_type b)
|
|||
case ~__INT_MAX__:
|
||||
break;
|
||||
}
|
||||
static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
|
||||
using underlying_type = std::underlying_type<bitmask_type>::type;
|
||||
static_assert( sizeof(underlying_type) == sizeof(int),
|
||||
"underlying type has same range of values as int");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue