summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/filesystem/test/issues/4329.-basename.cpp
blob: a07648b32b46c485d7a5721b6fa65beb1641ad17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <boost/filesystem.hpp>
using boost::filesystem::path;

int main()
{
  std::cout << path("a").stem() << std::endl;
  std::cout << path("a/").stem() << std::endl;
  std::cout << path("a/b").stem() << std::endl;
  std::cout << path("a/b/").stem() << std::endl;
  std::cout << path("a/b/c").stem() << std::endl;
  std::cout << path("a/b/c/").stem() << std::endl;
  std::cout << path("a/b/c/d").stem() << std::endl;
  std::cout << path("a/b/c/d/").stem() << std::endl;
  std::cout << path("a/b/c/d/e").stem() << std::endl;
  std::cout << path("a/b/c/d/e/").stem() << std::endl;
  return 0;
}