range_access.cc 974 B

12345678910111213141516171819202122232425262728293031
  1. // { dg-do compile { target c++11 } }
  2. // { dg-timeout-factor 2 }
  3. // Copyright (C) 2010-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. // 24.6.5, range access [iterator.range]
  18. #include <regex>
  19. void
  20. test01()
  21. {
  22. std::smatch sm;
  23. (void) std::begin(sm);
  24. (void) std::end(sm);
  25. }