summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-10-15 22:37:42 +0000
committerEric Fiselier <eric@efcs.ca>2016-10-15 22:37:42 +0000
commit87ee8a0adb05dd695c7b5e84302ae43a57c0f417 (patch)
tree056eb7e82c88bc0b92ea50dfe915cd9ef8fea5b2 /libcxx/test
parent8ea0246e93a29095dd8a0ea5e40bb3aa157d3611 (diff)
downloadbcm5719-llvm-87ee8a0adb05dd695c7b5e84302ae43a57c0f417.tar.gz
bcm5719-llvm-87ee8a0adb05dd695c7b5e84302ae43a57c0f417.zip
Implement modified LWG 2665
llvm-svn: 284313
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp
index 4ad9084dbf8..e414202bf8f 100644
--- a/libcxx/test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp
+++ b/libcxx/test/std/experimental/filesystem/class.path/path.member/path.modifiers/remove_filename.pass.cpp
@@ -35,16 +35,24 @@ const RemoveFilenameTestcase TestCases[] =
{
{"", ""}
, {"/", ""}
+ , {"//", ""}
+ , {"///", ""}
, {"\\", ""}
, {".", ""}
, {"..", ""}
, {"/foo", "/"}
+ , {"//foo", ""}
+ , {"//foo/", ""}
+ , {"//foo///", ""}
+ , {"///foo", "/"}
+ , {"///foo/", "///foo"}
, {"/foo/", "/foo"}
, {"/foo/.", "/foo"}
, {"/foo/..", "/foo"}
, {"/foo/////", "/foo"}
, {"/foo\\\\", "/"}
, {"/foo//\\/", "/foo//\\"}
+ , {"///foo", "/"}
, {"file.txt", ""}
, {"bar/../baz/./file.txt", "bar/../baz/."}
};
OpenPOWER on IntegriCloud