aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/path/driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/path/driver.cxx b/tests/path/driver.cxx
index 8fbd134..c83fd12 100644
--- a/tests/path/driver.cxx
+++ b/tests/path/driver.cxx
@@ -4,6 +4,7 @@
#include <cassert>
#include <iostream>
+#include <type_traits>
#include <butl/path>
#include <butl/path-io>
@@ -14,6 +15,12 @@ using namespace butl;
int
main ()
{
+ static_assert (is_nothrow_destructible<path>::value, "");
+ static_assert (is_nothrow_move_constructible<path>::value, "");
+
+ static_assert (is_nothrow_destructible<dir_path>::value, "");
+ static_assert (is_nothrow_move_constructible<dir_path>::value, "");
+
assert (path ("/").string () == "/");
assert (path ("//").string () == "/");
assert (path ("/tmp/foo/").string () == "/tmp/foo");