diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-01 03:18:17 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-01 03:18:17 +0000 |
commit | a9793559942dd055d460f8e3d438b49889eb4f5c (patch) | |
tree | 308e91c1a56edcdd779628e1d6fe17638b6ef292 /unittests/Support/Path.cpp | |
parent | ff25116a097230f6fff309a73a9b0610631282a6 (diff) |
Support/PathV2: Add filename implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/Path.cpp')
-rw-r--r-- | unittests/Support/Path.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 8570047af8..0dae960f48 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -94,6 +94,9 @@ TEST(Support, Path) { if (error_code ec = sys::path::parent_path(*i, res)) ASSERT_FALSE(ec.message().c_str()); outs() << " parent_path: " << res << '\n'; + if (error_code ec = sys::path::filename(*i, res)) + ASSERT_FALSE(ec.message().c_str()); + outs() << " filename: " << res << '\n'; temp_store = *i; if (error_code ec = sys::path::make_absolute(temp_store)) |