Remove dead code. Fixes pr20544.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-08-08 21:35:52 +00:00
parent a7c6b3a57a
commit d6039e045f
4 changed files with 6 additions and 32 deletions

View File

@ -640,22 +640,22 @@ TEST(Support, NormalizePath) {
SmallString<64> Path5("\\a");
SmallString<64> Path6("a\\");
ASSERT_NO_ERROR(fs::normalize_separators(Path1));
path::native(Path1);
EXPECT_PATH_IS(Path1, "a", "a");
ASSERT_NO_ERROR(fs::normalize_separators(Path2));
path::native(Path2);
EXPECT_PATH_IS(Path2, "a/b", "a/b");
ASSERT_NO_ERROR(fs::normalize_separators(Path3));
path::native(Path3);
EXPECT_PATH_IS(Path3, "a\\b", "a/b");
ASSERT_NO_ERROR(fs::normalize_separators(Path4));
path::native(Path4);
EXPECT_PATH_IS(Path4, "a\\\\b", "a\\\\b");
ASSERT_NO_ERROR(fs::normalize_separators(Path5));
path::native(Path5);
EXPECT_PATH_IS(Path5, "\\a", "/a");
ASSERT_NO_ERROR(fs::normalize_separators(Path6));
path::native(Path6);
EXPECT_PATH_IS(Path6, "a\\", "a/");
#undef EXPECT_PATH_IS