append_op.pass.cpp 784 B

1234567891011121314151617181920212223242526272829303132
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // UNSUPPORTED: c++98, c++03
  10. // <experimental/filesystem>
  11. // path operator/(path const&, path const&);
  12. #include "filesystem_include.hpp"
  13. #include <type_traits>
  14. #include <cassert>
  15. #include "test_macros.h"
  16. #include "filesystem_test_helper.hpp"
  17. // This is mainly tested via the member append functions.
  18. int main()
  19. {
  20. using namespace fs;
  21. path p1("abc");
  22. path p2("def");
  23. path p3 = p1 / p2;
  24. assert(p3 == "abc/def");
  25. }