test_warnings.cpp 502 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. *
  3. * Copyright (c) 2018
  4. * John Maddock
  5. *
  6. * Use, modification and distribution are subject to the
  7. * Boost Software License, Version 1.0. (See accompanying file
  8. * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. *
  10. */
  11. #ifdef _MSC_VER
  12. #pragma warning(disable:4820 4668)
  13. #endif
  14. #ifdef __APPLE_CC__
  15. #pragma clang diagnostic ignored "-Wc++11-long-long"
  16. #endif
  17. #include <boost/regex.hpp>
  18. void test_proc()
  19. {
  20. std::string text, re;
  21. boost::regex exp(re);
  22. regex_match(text, exp);
  23. }