macros.cc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // { dg-do compile }
  2. // Copyright (C) 2007-2022 Free Software Foundation, Inc.
  3. //
  4. // This file is part of the GNU ISO C++ Library. This library is free
  5. // software; you can redistribute it and/or modify it under the
  6. // terms of the GNU General Public License as published by the
  7. // Free Software Foundation; either version 3, or (at your option)
  8. // any later version.
  9. // This library is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. // You should have received a copy of the GNU General Public License along
  14. // with this library; see the file COPYING3. If not see
  15. // <http://www.gnu.org/licenses/>.
  16. #include <clocale>
  17. namespace gnu
  18. {
  19. #ifndef NULL
  20. #error "NULL_must_be_a_macro"
  21. #endif
  22. #ifndef LC_ALL
  23. #error "LC_ALL_must_be_a_macro"
  24. #endif
  25. #ifndef LC_COLLATE
  26. #error "LC_COLLATE_must_be_a_macro"
  27. #endif
  28. #ifndef LC_CTYPE
  29. #error "LC_CTYPE_must_be_a_macro"
  30. #endif
  31. #ifndef LC_MONETARY
  32. #error "LC_MONETARY_must_be_a_macro"
  33. #endif
  34. #ifndef LC_NUMERIC
  35. #error "LC_NUMERIC_must_be_a_macro"
  36. #endif
  37. #ifndef LC_TIME
  38. #error "LC_TIME_must_be_a_macro"
  39. #endif
  40. }