40712.cc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // { dg-require-namedlocale "en_US.ISO8859-1" }
  2. // 2009-07-18 Paolo Carlini <paolo.carlini@oracle.com>
  3. // Copyright (C) 2009-2022 Free Software Foundation, Inc.
  4. //
  5. // This file is part of the GNU ISO C++ Library. This library is free
  6. // software; you can redistribute it and/or modify it under the
  7. // terms of the GNU General Public License as published by the
  8. // Free Software Foundation; either version 3, or (at your option)
  9. // any later version.
  10. // This library is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. // You should have received a copy of the GNU General Public License along
  15. // with this library; see the file COPYING3. If not see
  16. // <http://www.gnu.org/licenses/>.
  17. // 22.2.6.3 Template class moneypunct
  18. #include <locale>
  19. #include <testsuite_hooks.h>
  20. // libstdc++/40712
  21. void test01()
  22. {
  23. using namespace std;
  24. locale loc(locale("C"), ISO_8859(1,en_US), locale::monetary);
  25. use_facet<moneypunct<char> >(loc).grouping();
  26. }
  27. int main()
  28. {
  29. test01();
  30. return 0;
  31. }