1*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===// 2*4684ddb6SLionel Sambuc // 3*4684ddb6SLionel Sambuc // The LLVM Compiler Infrastructure 4*4684ddb6SLionel Sambuc // 5*4684ddb6SLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*4684ddb6SLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*4684ddb6SLionel Sambuc // 8*4684ddb6SLionel Sambuc //===----------------------------------------------------------------------===// 9*4684ddb6SLionel Sambuc 10*4684ddb6SLionel Sambuc // <regex> 11*4684ddb6SLionel Sambuc 12*4684ddb6SLionel Sambuc // template <class charT, class traits = regex_traits<charT>> class basic_regex; 13*4684ddb6SLionel Sambuc 14*4684ddb6SLionel Sambuc // basic_regex& operator=(initializer_list<charT> il); 15*4684ddb6SLionel Sambuc 16*4684ddb6SLionel Sambuc #include <regex> 17*4684ddb6SLionel Sambuc #include <cassert> 18*4684ddb6SLionel Sambuc main()19*4684ddb6SLionel Sambucint main() 20*4684ddb6SLionel Sambuc { 21*4684ddb6SLionel Sambuc #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS 22*4684ddb6SLionel Sambuc std::regex r2; 23*4684ddb6SLionel Sambuc r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}; 24*4684ddb6SLionel Sambuc assert(r2.flags() == std::regex::ECMAScript); 25*4684ddb6SLionel Sambuc assert(r2.mark_count() == 2); 26*4684ddb6SLionel Sambuc #endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS 27*4684ddb6SLionel Sambuc } 28