• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
10 // UNSUPPORTED: c++98, c++03
11 
12 // <experimental/filesystem>
13 
14 // path operator/(path const&, path const&);
15 
16 #include <experimental/filesystem>
17 #include <type_traits>
18 #include <cassert>
19 
20 #include "test_macros.h"
21 #include "filesystem_test_helper.hpp"
22 
23 namespace fs = std::experimental::filesystem;
24 
25 // This is mainly tested via the member append functions.
main()26 int main()
27 {
28   using namespace fs;
29   path p1("abc");
30   path p2("def");
31   path p3 = p1 / p2;
32   assert(p3 == "abc/def");
33 }
34