+2015-11-25 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Explicitly
+ check minimum and maximum values, and size of underlying type.
+ * testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
+ * testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
+
2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY) <solaris2*>: Use
break;
case std::_S_ios_fmtflags_end:
break;
- case std::_S_ios_fmtflags_min:
+ case __INT_MAX__:
break;
- case std::_S_ios_fmtflags_max:
+ case ~__INT_MAX__:
break;
}
+ static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
+ "underlying type has same range of values as int");
}
break;
case std::_S_ios_iostate_end:
break;
- case std::_S_ios_iostate_min:
+ case __INT_MAX__:
break;
- case std::_S_ios_iostate_max:
+ case ~__INT_MAX__:
break;
}
+ static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
+ "underlying type has same range of values as int");
}
break;
case std::_S_ios_openmode_end:
break;
- case std::_S_ios_openmode_min:
+ case __INT_MAX__:
break;
- case std::_S_ios_openmode_max:
+ case ~__INT_MAX__:
break;
}
+ static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int),
+ "underlying type has same range of values as int");
}