Lines Matching refs:ios
10 // <ios>
16 #include <ios>
25 std::ios ios(0);
26 ios.setstate(std::ios::goodbit);
27 assert(ios.rdstate() == std::ios::badbit);
30 ios.exceptions(std::ios::badbit);
37 ios.setstate(std::ios::goodbit);
40 catch (std::ios::failure&)
42 assert(ios.rdstate() == std::ios::badbit);
46 ios.setstate(std::ios::eofbit);
49 catch (std::ios::failure&)
51 assert(ios.rdstate() == (std::ios::eofbit | std::ios::badbit));
56 std::ios ios(&sb);
57 ios.setstate(std::ios::goodbit);
58 assert(ios.rdstate() == std::ios::goodbit);
59 ios.setstate(std::ios::eofbit);
60 assert(ios.rdstate() == std::ios::eofbit);
61 ios.setstate(std::ios::failbit);
62 assert(ios.rdstate() == (std::ios::eofbit | std::ios::failbit));