summaryrefslogtreecommitdiffstats
path: root/libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp')
-rw-r--r--libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp b/libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp
deleted file mode 100644
index 58cdabc24df..00000000000
--- a/libcxx/test/re/re.results/re.results.acc/prefix.pass.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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>
-
-// class match_results<BidirectionalIterator, Allocator>
-
-// const_reference prefix() const;
-
-#include <regex>
-#include <cassert>
-
-void
-test()
-{
- std::match_results<const char*> m;
- const char s[] = "abcdefghijk";
- assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
-
- assert(m.prefix().first == s);
- assert(m.prefix().second == s+2);
- assert(m.prefix().matched == true);
-}
-
-int main()
-{
- test();
-}
OpenPOWER on IntegriCloud