summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.syn/cmatch.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/re/re.syn/cmatch.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.syn/cmatch.pass.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/std/re/re.syn/cmatch.pass.cpp b/libcxx/test/std/re/re.syn/cmatch.pass.cpp
new file mode 100644
index 00000000000..1364b7873ea
--- /dev/null
+++ b/libcxx/test/std/re/re.syn/cmatch.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<const char*> cmatch;
+
+#include <regex>
+#include <type_traits>
+
+int main()
+{
+ static_assert((std::is_same<std::match_results<const char*>, std::cmatch>::value), "");
+}
OpenPOWER on IntegriCloud