aboutsummaryrefslogtreecommitdiff
path: root/test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp')
-rw-r--r--test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp b/test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp
new file mode 100644
index 000000000000..beabe0cae660
--- /dev/null
+++ b/test/std/localization/locale.categories/category.monetary/locale.moneypunct/money_base.pass.cpp
@@ -0,0 +1,33 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <locale>
+
+// class money_base
+// {
+// public:
+// enum part {none, space, symbol, sign, value};
+// struct pattern {char field[4];};
+// };
+
+#include <locale>
+#include <cassert>
+
+int main()
+{
+ std::money_base mb;
+ assert(mb.none == 0);
+ assert(mb.space == 1);
+ assert(mb.symbol == 2);
+ assert(mb.sign == 3);
+ assert(mb.value == 4);
+ assert(sizeof(std::money_base::pattern) == 4);
+ std::money_base::pattern p;
+ p.field[0] = std::money_base::none;
+}