//===----------------------------------------------------------------------===//
//
//                     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;
}

//===----------------------------------------------------------------------===//
//
//                     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; ((void)mb);
    static_assert(std::money_base::none == 0, "");
    static_assert(std::money_base::space == 1, "");
    static_assert(std::money_base::symbol == 2, "");
    static_assert(std::money_base::sign == 3, "");
    static_assert(std::money_base::value == 4, "");
    static_assert(sizeof(std::money_base::pattern) == 4, "");
    std::money_base::pattern p;
    p.field[0] = std::money_base::none;
}

Use static_assert instead of runtime assert in std::money_base tests.
Use static_assert instead of runtime assert in std::money_base tests.

git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@273360 91177308-0d34-0410-b5e6-96231b3b80d8
