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
9 // UNSUPPORTED: c++03
10
11 // <regex>
12
13 // template <class charT, class traits = regex_traits<charT>> class basic_regex;
14
15 // basic_regex& operator=(initializer_list<charT> il);
16
17 #include <regex>
18 #include <cassert>
19 #include "test_macros.h"
20
main(int,char **)21 int main(int, char**)
22 {
23 std::regex r2;
24 r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'};
25 assert(r2.flags() == std::regex::ECMAScript);
26 assert(r2.mark_count() == 2);
27
28 return 0;
29 }
30