From 7e08094436dcd65ddfd28bd2b3cada3550cec0cf Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Thu, 2 Jun 2005 22:00:40 +0000 Subject: [PATCH] Add do-the-right-thing two argument overload tests [SVN r29389] --- test/operations_test.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/operations_test.cpp b/test/operations_test.cpp index 7464428..86725fc 100644 --- a/test/operations_test.cpp +++ b/test/operations_test.cpp @@ -90,6 +90,24 @@ namespace return false; } + // compile-only two argument "do-the-right-thing" tests + // verifies that all overload combinations compile without error + void do_not_call() + { + fs::path p; + std::string s; + const char * a = 0; + fs::copy_file( p, p ); + fs::copy_file( s, p ); + fs::copy_file( a, p ); + fs::copy_file( p, s ); + fs::copy_file( p, a ); + fs::copy_file( s, s ); + fs::copy_file( a, s ); + fs::copy_file( s, a ); + fs::copy_file( a, a ); + } + } // unnamed namespace // test_main ---------------------------------------------------------------//