blob: f1d7bf7696d917d7c7ded2106c8b7becc1ad2f1e [file] [log] [blame]
Howard Hinnant24e98482010-06-24 21:28:00 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant412dbeb2010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant24e98482010-06-24 21:28:00 +00007//
8//===----------------------------------------------------------------------===//
9
10// <regex>
11
12// template <class charT, class traits = regex_traits<charT>> class basic_regex;
13
14// basic_regex();
15
16#include <regex>
17#include <cassert>
Marshall Clowfd5ceb22016-04-26 16:24:44 +000018#include "test_macros.h"
Howard Hinnant24e98482010-06-24 21:28:00 +000019
20template <class CharT>
21void
22test()
23{
24 std::basic_regex<CharT> r;
25 assert(r.flags() == 0);
26 assert(r.mark_count() == 0);
27}
28
29int main()
30{
31 test<char>();
32 test<wchar_t>();
33}