OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libstdc++-v3/] [testsuite/] [28_regex/] [constants/] [match_flag_type.cc] - Blame information for rev 742

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.