ptr.pass.cpp 736 B

123456789101112131415161718192021222324252627
  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 charT, class traits = regex_traits<charT>> class basic_regex;
  10. // basic_regex& operator=(const charT* ptr);
  11. #include <regex>
  12. #include <cassert>
  13. #include "test_macros.h"
  14. int main(int, char**)
  15. {
  16. std::regex r2;
  17. r2 = "(a([bc]))";
  18. assert(r2.flags() == std::regex::ECMAScript);
  19. assert(r2.mark_count() == 2);
  20. return 0;
  21. }