diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-21 11:56:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-21 11:56:00 +0200 |
commit | 7a528eab1561b0d0d4ec29f98355fe67025ea632 (patch) | |
tree | 28a2061f17e3ee625e8674378227a81a8738a6ec /unit-tests/function/driver.cxx | |
parent | 3db0756adc641e0a63c4c9f194c4f73cceddd90c (diff) |
Add support for derived-to-base function overload resolution
Diffstat (limited to 'unit-tests/function/driver.cxx')
-rw-r--r-- | unit-tests/function/driver.cxx | 2 |
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. // |