commit 546efe296150b8e7db9e8c3287e19648c1736193
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue May 16 15:18:29 2017 +0100
Test source_location::current() in default member initializer
* testsuite/experimental/source_location/1.cc: Change expected result
for source_location::current() used in default member initializer.
@@ -56,9 +56,9 @@ void test02()
VERIFY( s0.loc.function_name() == string_view(__FUNCTION__) );
S s1(1);
- VERIFY( s1.loc.line() != 58 );
+ VERIFY( s1.loc.line() == 46 );
VERIFY( s1.loc.file_name() == __FILE__ );
- // VERIFY( s1.loc.function_name() == s1.func );
+ VERIFY( s1.loc.function_name() == s1.func );
}
source_location f(source_location a = source_location::current()) {