aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/function/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/function/driver.cxx')
-rw-r--r--unit-tests/function/driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/unit-tests/function/driver.cxx b/unit-tests/function/driver.cxx
index ba51662..0708cea 100644
--- a/unit-tests/function/driver.cxx
+++ b/unit-tests/function/driver.cxx
@@ -47,6 +47,8 @@ namespace build2
f[".length"] = &string::size; // Member function.
f[".type"] = &name::type; // Data member.
+ f[".abs"] = [](dir_path d) {return d.absolute ();};
+
// Variadic function with first required argument of type bool. Returns
// number of arguments passed.
//