diff options
Diffstat (limited to 'libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/flags.pass.cpp')
-rw-r--r-- | libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/flags.pass.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/flags.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/flags.pass.cpp new file mode 100644 index 00000000000..685f4a674fd --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/fmtflags.state/flags.pass.cpp @@ -0,0 +1,33 @@ +//===----------------------------------------------------------------------===// +// +// ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚThe LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <ios> + +// class ios_base + +// fmtflags flags() const; + +#include <ios> +#include <cassert> + +class test + : public std::ios +{ +public: + test() + { + init(0); + } +}; + +int main() +{ + const test t; + assert(t.flags() == (test::skipws | test::dec)); +} |