]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/28_regex/constants/constexpr.cc
1 // { dg-do compile { target c++11 } }
3 // Copyright (C) 2015-2017 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
28 const std::regex_constants::syntax_option_type
* option
__attribute__((unused
));
29 option
= &std::regex_constants::icase
;
30 option
= &std::regex_constants::nosubs
;
31 option
= &std::regex_constants::optimize
;
32 option
= &std::regex_constants::collate
;
33 option
= &std::regex_constants::ECMAScript
;
34 option
= &std::regex_constants::basic
;
35 option
= &std::regex_constants::extended
;
36 option
= &std::regex_constants::awk
;
37 option
= &std::regex_constants::grep
;
38 option
= &std::regex_constants::egrep
;
40 const std::regex_constants::match_flag_type
* flag
__attribute__((unused
));
41 flag
= &std::regex_constants::match_not_bol
;
42 flag
= &std::regex_constants::match_not_eol
;
43 flag
= &std::regex_constants::match_not_bow
;
44 flag
= &std::regex_constants::match_not_eow
;
45 flag
= &std::regex_constants::match_any
;
46 flag
= &std::regex_constants::match_not_null
;
47 flag
= &std::regex_constants::match_continuous
;
48 flag
= &std::regex_constants::match_prev_avail
;
49 flag
= &std::regex_constants::format_default
;
50 flag
= &std::regex_constants::format_sed
;
51 flag
= &std::regex_constants::format_no_copy
;
52 flag
= &std::regex_constants::format_first_only
;