diff --git a/test/source_location_test.cpp b/test/source_location_test.cpp index 9373fa4..dc087bb 100644 --- a/test/source_location_test.cpp +++ b/test/source_location_test.cpp @@ -41,6 +41,13 @@ int main() BOOST_TEST_EQ( loc.line(), 38 ); } + { + BOOST_STATIC_CONSTEXPR boost::source_location loc = BOOST_CURRENT_LOCATION; + + BOOST_TEST_CSTR_EQ( loc.file_name(), __FILE__ ); + BOOST_TEST_EQ( loc.line(), 45 ); + } + #if defined(__cpp_lib_source_location) && __cpp_lib_source_location >= 201907L {