]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Test source_location::current() in default member initializer
authorJonathan Wakely <jwakely@redhat.com>
Tue, 16 May 2017 14:26:14 +0000 (15:26 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 16 May 2017 14:26:14 +0000 (15:26 +0100)
* testsuite/experimental/source_location/1.cc: Change expected result
for source_location::current() used in default member initializer.

From-SVN: r248111

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/experimental/source_location/1.cc

index 5cc498b6cb7a4b0fbeb3762ba2587fa0c9586753..c32dc62abca8c3ec1e29b73b44534f33d9e662c7 100644 (file)
@@ -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.
index 2634ab465a1889106b87888196ad80dad80f4c3f..febd84e2b65bf4b9bfa8b902179cce86b661f412 100644 (file)
@@ -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()) {