Extend valid values of iostream bitmask types
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Nov 2015 17:08:42 +0000 (17:08 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 12 Nov 2015 17:08:42 +0000 (17:08 +0000)
commitfbfae2f0897fe5e0e7ac86fa326e8e03b1a162e9
tree817903a0b4bf341a255787e22cfbdece9e78ac43
parentf022ab03108e863b6dac7babff1d6fff1cf8703b
Extend valid values of iostream bitmask types

PR libstdc++/56158
* include/bits/ios_base.h (_Ios_Fmtflags, _Ios_Openmode, _Ios_Iostate):
Define enumerators to ensure all values of type int are valid values
of the enumeration type.
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Add new cases.
* testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.

From-SVN: r230267
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ios_base.h
libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc
libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc
libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc