Commit 9b46e4d6 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 8ed49fab
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.
......
// { 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");
}
// { 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");
}
// { 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");
}
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