basic.fail.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. // <regex>
  9. // template <class ST, class SA, class Allocator, class charT, class traits>
  10. // bool regex_search(const basic_string<charT, ST, SA>&&,
  11. // match_results<
  12. // typename basic_string<charT, ST, SA>::const_iterator,
  13. // Allocator>&,
  14. // const basic_regex<charT, traits>&,
  15. // regex_constants::match_flag_type =
  16. // regex_constants::match_default) = delete;
  17. #include <regex>
  18. #include <cassert>
  19. #include "test_macros.h"
  20. #if TEST_STD_VER < 14
  21. #error
  22. #endif
  23. int main(int, char**)
  24. {
  25. {
  26. std::smatch m;
  27. std::regex re{"*"};
  28. std::regex_search(std::string("abcde"), m, re);
  29. }
  30. return 0;
  31. }