1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03
10 
11 // <filesystem>
12 
13 // path operator/(path const&, path const&);
14 
15 #include "filesystem_include.h"
16 #include <type_traits>
17 #include <cassert>
18 
19 #include "test_macros.h"
20 #include "filesystem_test_helper.h"
21 
22 // This is mainly tested via the member append functions.
main(int,char **)23 int main(int, char**)
24 {
25   using namespace fs;
26   path p1("abc");
27   path p2("def");
28   path p3 = p1 / p2;
29   assert(p3 == "abc/def");
30 
31   path p4 = p1 / "def";
32   assert(p4 == "abc/def");
33 
34   return 0;
35 }
36