diff --git a/test/Jamfile b/test/Jamfile index 5c43827..7dacf26 100755 --- a/test/Jamfile +++ b/test/Jamfile @@ -57,4 +57,7 @@ test-suite "typeof" [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_NATIVE : odr_native ] [ run odr1.cpp odr2.cpp : : : BOOST_TYPEOF_COMPLIANT : odr_emulation ] + + [ compile function_ptr_from_tpl.cpp : BOOST_TYPEOF_NATIVE : function_ptr_from_tpl_native ] + [ compile function_ptr_from_tpl.cpp : BOOST_TYPEOF_COMPLIANT : function_ptr_from_tpl_emulation ] ; diff --git a/test/function_ptr_from_tpl.cpp b/test/function_ptr_from_tpl.cpp new file mode 100755 index 0000000..8684d37 --- /dev/null +++ b/test/function_ptr_from_tpl.cpp @@ -0,0 +1,10 @@ +#include + +void f() +{} + +template +class x +{ + typedef BOOST_TYPEOF(&::f) type; +};