blob: e71f3a69217ebf5a43892362e55975518b30c08e [file] [log] [blame]
Howard Hinnant262b7792010-08-17 20:42:03 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnantb64f8b02010-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 Hinnant262b7792010-08-17 20:42:03 +00007//
8//===----------------------------------------------------------------------===//
9
10// <regex>
11
12// class regex_token_iterator<BidirectionalIterator, charT, traits>
13
14// regex_token_iterator();
15
16#include <regex>
17#include <cassert>
Marshall Clow6dfff1c2016-04-26 16:24:44 +000018#include "test_macros.h"
Howard Hinnant262b7792010-08-17 20:42:03 +000019
20template <class CharT>
21void
22test()
23{
24 typedef std::regex_token_iterator<const CharT*> I;
25 I i1;
26 assert(i1 == I());
27}
28
29int main()
30{
31 test<char>();
32 test<wchar_t>();
Howard Hinnanta8d77592010-08-18 00:13:08 +000033}