]>
Commit | Line | Data |
---|---|---|
52066eae | 1 | // { dg-do compile { target c++11 } } |
849cab7b SW |
2 | // |
3 | // 2009-06-17 Stephen M. Webb <stephen.webb@xandros.com> | |
4 | // | |
818ab71a | 5 | // Copyright (C) 2009-2016 Free Software Foundation, Inc. |
849cab7b SW |
6 | // |
7 | // This file is part of the GNU ISO C++ Library. This library is free | |
8 | // software; you can redistribute it and/or modify it under the | |
9 | // terms of the GNU General Public License as published by the | |
10 | // Free Software Foundation; either version 3, or (at your option) | |
11 | // any later version. | |
12 | // | |
13 | // This library is distributed in the hope that it will be useful, | |
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | // GNU General Public License for more details. | |
17 | // | |
18 | // You should have received a copy of the GNU General Public License along | |
19 | // with this library; see the file COPYING3. If not see | |
20 | // <http://www.gnu.org/licenses/>. | |
21 | ||
22 | // 28.5.1 | |
23 | ||
24 | #include <regex> | |
849cab7b SW |
25 | |
26 | void | |
27 | test01() | |
28 | { | |
2437d31d | 29 | std::regex_constants::match_flag_type flag = std::regex_constants::match_default; |
849cab7b | 30 | |
2437d31d PC |
31 | flag |= std::regex_constants::match_not_bol; |
32 | flag |= std::regex_constants::match_not_eol; | |
33 | flag |= std::regex_constants::match_not_bow; | |
34 | flag |= std::regex_constants::match_not_eow; | |
35 | flag |= std::regex_constants::match_any; | |
36 | flag |= std::regex_constants::match_not_null; | |
37 | flag |= std::regex_constants::match_continuous; | |
38 | flag |= std::regex_constants::match_prev_avail; | |
39 | flag |= std::regex_constants::format_default; | |
40 | flag |= std::regex_constants::format_sed; | |
41 | flag |= std::regex_constants::format_no_copy; | |
42 | flag |= std::regex_constants::format_first_only; | |
849cab7b SW |
43 | } |
44 | ||
45 | int main() | |
46 | { | |
47 | test01(); | |
48 | return 0; | |
49 | } |