posix.cpp 376 B

123456789101112131415
  1. ///////////////////////////////////////////////////////////////
  2. // Copyright 2015 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_
  5. //
  6. #include <regex.h>
  7. int main()
  8. {
  9. regex_t pe;
  10. int r = regcomp(&pe, "foo", REG_EXTENDED);
  11. regfree(&pe);
  12. return r;
  13. }