summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.syn/wsmatch.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.syn/wsmatch.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.syn/wsmatch.pass.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/std/re/re.syn/wsmatch.pass.cpp b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp
new file mode 100644
index 00000000000..092c7d16d7a
--- /dev/null
+++ b/libcxx/test/std/re/re.syn/wsmatch.pass.cpp
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <regex>
+
+// typedef match_results<wstring::const_iterator> wsmatch;
+
+#include <regex>
+#include <type_traits>
+
+int main()
+{
+ static_assert((std::is_same<std::match_results<std::wstring::const_iterator>, std::wsmatch>::value), "");
+}
OpenPOWER on IntegriCloud