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 // This is mainly tested via the member append functions. main()24int main() 25 { 26 using namespace fs; 27 path p1("abc"); 28 path p2("def"); 29 path p3 = p1 / p2; 30 assert(p3 == "abc/def"); 31 32 path p4 = p1 / "def"; 33 assert(p4 == "abc/def"); 34 } 35