diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-05-16 15:26:14 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-05-16 15:26:14 +0100 |
commit | 058c785479b1652ffd47d397a9693fe5e5fdea39 (patch) | |
tree | 52a699381abbbf28553e0b9ffee34cdc5b684803 | |
parent | 2673bae9d22a343c2df4cb635b818956b95ff1cf (diff) | |
download | gcc-058c785479b1652ffd47d397a9693fe5e5fdea39.zip gcc-058c785479b1652ffd47d397a9693fe5e5fdea39.tar.gz gcc-058c785479b1652ffd47d397a9693fe5e5fdea39.tar.bz2 |
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.
From-SVN: r248111
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/experimental/source_location/1.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5cc498b..c32dc62 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,6 +1,8 @@ 2017-05-16 Jonathan Wakely <jwakely@redhat.com> - * configure: Regenerate. + * testsuite/experimental/source_location/1.cc: Change expected result + for source_location::current() used in default member initializer. + * doc/xml/manual/status_cxx2017.xml: Update status table. * doc/html/*: Regenerate. * include/Makefile.am: Add new header. diff --git a/libstdc++-v3/testsuite/experimental/source_location/1.cc b/libstdc++-v3/testsuite/experimental/source_location/1.cc index 2634ab4..febd84e 100644 --- a/libstdc++-v3/testsuite/experimental/source_location/1.cc +++ b/libstdc++-v3/testsuite/experimental/source_location/1.cc @@ -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()) { |