1274955Ssvnmir// { dg-do compile }
2274955Ssvnmir
3353358Sdim// 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
4353358Sdim//
5353358Sdim// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
6274955Ssvnmir//
7274955Ssvnmir// This file is part of the GNU ISO C++ Library.  This library is free
8274955Ssvnmir// software; you can redistribute it and/or modify it under the
9274955Ssvnmir// terms of the GNU General Public License as published by the
10274955Ssvnmir// Free Software Foundation; either version 3, or (at your option)
11274955Ssvnmir// any later version.
12274955Ssvnmir
13274955Ssvnmir// This library is distributed in the hope that it will be useful,
14274955Ssvnmir// but WITHOUT ANY WARRANTY; without even the implied warranty of
15274955Ssvnmir// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16274955Ssvnmir// GNU General Public License for more details.
17274955Ssvnmir
18274955Ssvnmir// You should have received a copy of the GNU General Public License along
19274955Ssvnmir// with this library; see the file COPYING3.  If not see
20274955Ssvnmir// <http://www.gnu.org/licenses/>.
21314564Sdim
22274955Ssvnmir// tr1 [7.8.3] class template basic_regex assign()
23274955Ssvnmir
24314564Sdim#include <string>
25314564Sdim#include <tr1/regex>
26274955Ssvnmir#include <testsuite_hooks.h>
27274955Ssvnmir
28274955Ssvnmir// Tests basic_regex assignment operator from a C++ string;
29274955Ssvnmirvoid test01()
30274955Ssvnmir{
31274955Ssvnmir  typedef std::tr1::basic_regex<wchar_t> test_type;
32288943Sdim
33321369Sdim  std::wstring s(L"a*b");
34321369Sdim  test_type re;
35321369Sdim  re = s;
36321369Sdim}
37288943Sdim
38288943Sdimint
39288943Sdimmain()
40314564Sdim{
41274955Ssvnmir  test01();
42321369Sdim  return 0;
43321369Sdim};
44321369Sdim