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 7 #include <regex.h> 8 main()9int main() 10 { 11 regex_t pe; 12 int r = regcomp(&pe, "foo", REG_EXTENDED); 13 regfree(&pe); 14 return r; 15 } 16