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 // <filesystem>
13 
14 // path operator/(path const&, path const&);
15 
16 #include "filesystem_include.hpp"
17 #include <type_traits>
18 #include <cassert>
19 
20 #include "test_macros.h"
21 #include "filesystem_test_helper.hpp"
22 
23 
24 // This is mainly tested via the member append functions.
25 int main()
26 {
27   using namespace fs;
28   path p1("abc");
29   path p2("def");
30   path p3 = p1 / p2;
31   assert(p3 == "abc/def");
32 }
33