summaryrefslogtreecommitdiffstats
path: root/libcxx/test/re/re.regex/re.regex.construct
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-06-24 21:28:00 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-06-24 21:28:00 +0000
commit24e98486a3b6076bfa1b5fac5c2be0ec264d10c9 (patch)
tree3bab4b034474b5f1b8073e45e22b6a95483c3082 /libcxx/test/re/re.regex/re.regex.construct
parent2b87d44c5de111da0389f832e7311101f61e6a55 (diff)
downloadbcm5719-llvm-24e98486a3b6076bfa1b5fac5c2be0ec264d10c9.tar.gz
bcm5719-llvm-24e98486a3b6076bfa1b5fac5c2be0ec264d10c9.zip
Continuing to work through regex, and updated libcxx_by_chapter.pdf with weekly test results
llvm-svn: 106790
Diffstat (limited to 'libcxx/test/re/re.regex/re.regex.construct')
-rw-r--r--libcxx/test/re/re.regex/re.regex.construct/default.pass.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/libcxx/test/re/re.regex/re.regex.construct/default.pass.cpp b/libcxx/test/re/re.regex/re.regex.construct/default.pass.cpp
new file mode 100644
index 00000000000..44930f6d737
--- /dev/null
+++ b/libcxx/test/re/re.regex/re.regex.construct/default.pass.cpp
@@ -0,0 +1,32 @@
+//===----------------------------------------------------------------------===//
+//
+// 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, class traits = regex_traits<charT>> class basic_regex;
+
+// basic_regex();
+
+#include <regex>
+#include <cassert>
+
+template <class CharT>
+void
+test()
+{
+ std::basic_regex<CharT> r;
+ assert(r.flags() == 0);
+ assert(r.mark_count() == 0);
+}
+
+int main()
+{
+ test<char>();
+ test<wchar_t>();
+}
OpenPOWER on IntegriCloud