diff options
Diffstat (limited to 'libcxx/test/input.output/iostreams.base/ios.base/ios.base.locales/getloc.pass.cpp')
-rw-r--r-- | libcxx/test/input.output/iostreams.base/ios.base/ios.base.locales/getloc.pass.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.base.locales/getloc.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.base.locales/getloc.pass.cpp new file mode 100644 index 00000000000..bd4d737b676 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.base.locales/getloc.pass.cpp @@ -0,0 +1,34 @@ +//===----------------------------------------------------------------------===// +// +// ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚ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 + +// locale getloc() const; + +#include <ios> +#include <string> +#include <cassert> + +class test + : public std::ios +{ +public: + test() + { + init(0); + } +}; + +int main() +{ + const test t; + assert(t.getloc().name() == std::string("C")); +} |