diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc b/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc index 7d777b89c67..5ca9f5f8759 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc @@ -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"); } |