summaryrefslogtreecommitdiffstats
path: root/libcxx/test/re/re.traits/default.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/re/re.traits/default.pass.cpp')
-rw-r--r--libcxx/test/re/re.traits/default.pass.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/libcxx/test/re/re.traits/default.pass.cpp b/libcxx/test/re/re.traits/default.pass.cpp
new file mode 100644
index 00000000000..ebc3d80e390
--- /dev/null
+++ b/libcxx/test/re/re.traits/default.pass.cpp
@@ -0,0 +1,23 @@
+// -*- C++ -*-
+//===-------------------------- algorithm ---------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <regex>
+
+// template <class charT> struct regex_traits;
+
+// regex_traits();
+
+#include <regex>
+
+int main()
+{
+ std::regex_traits<char> t1();
+ std::regex_traits<wchar_t> t2();
+}
OpenPOWER on IntegriCloud