Rename test file that had incorrect bug number
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Dec 2015 14:16:36 +0000 (14:16 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 21 Dec 2015 14:16:36 +0000 (14:16 +0000)
PR libstdc++/68982
testsuite/20_util/function_objects/mem_fn/68276.cc: Rename to ...
testsuite/20_util/function_objects/mem_fn/68982.cc: Correct bug number.

From-SVN: r231881

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68276.cc [deleted file]
libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68982.cc [new file with mode: 0644]

index 6f77d0390a98513e2ae3692fbd44b941918170b4..6156979853a23cb8cbe976fdeaea9a254cd3bafd 100644 (file)
@@ -1,5 +1,9 @@
 2015-12-21  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/68982
+       testsuite/20_util/function_objects/mem_fn/68276.cc: Rename to ...
+       testsuite/20_util/function_objects/mem_fn/68982.cc: Correct bug number.
+
        PR libstdc++/68995
        * include/std/functional (_function_handler, function): Qualify
        __callable_functor.
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68276.cc b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68276.cc
deleted file mode 100644 (file)
index 9341bab..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (C) 2015 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library.  This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3.  If not see
-// <http://www.gnu.org/licenses/>.
-
-// { dg-options "-std=gnu++11" }
-// { dg-do compile }
-
-#include <functional>
-
-namespace n
-{
-  template<typename T> struct identity { using type = T; };
-
-  template<typename T>
-    T&&
-    forward(typename identity<T>::type& t)
-    { return static_cast<T&&>(t); }
-
-  struct X { };
-}
-
-struct server
-{
-  void action(n::X) { }
-
-  void act() {
-    auto f = std::mem_fn(&server::action);
-    n::X x;
-    f(this, x);
-  }
-};
-
diff --git a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68982.cc b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68982.cc
new file mode 100644 (file)
index 0000000..9341bab
--- /dev/null
@@ -0,0 +1,45 @@
+// Copyright (C) 2015 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+#include <functional>
+
+namespace n
+{
+  template<typename T> struct identity { using type = T; };
+
+  template<typename T>
+    T&&
+    forward(typename identity<T>::type& t)
+    { return static_cast<T&&>(t); }
+
+  struct X { };
+}
+
+struct server
+{
+  void action(n::X) { }
+
+  void act() {
+    auto f = std::mem_fn(&server::action);
+    n::X x;
+    f(this, x);
+  }
+};
+