From: Jonathan Wakely Date: Mon, 21 Dec 2015 14:16:36 +0000 (+0000) Subject: Rename test file that had incorrect bug number X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=989d4a8609c77122dca067c0240f3a3e0a452b6f;p=gcc.git Rename test file that had incorrect bug number 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6f77d0390a9..6156979853a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2015-12-21 Jonathan Wakely + 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 index 9341bab6d58..00000000000 --- a/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68276.cc +++ /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 -// . - -// { dg-options "-std=gnu++11" } -// { dg-do compile } - -#include - -namespace n -{ - template struct identity { using type = T; }; - - template - T&& - forward(typename identity::type& t) - { return static_cast(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 index 00000000000..9341bab6d58 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/function_objects/mem_fn/68982.cc @@ -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 +// . + +// { dg-options "-std=gnu++11" } +// { dg-do compile } + +#include + +namespace n +{ + template struct identity { using type = T; }; + + template + T&& + forward(typename identity::type& t) + { return static_cast(t); } + + struct X { }; +} + +struct server +{ + void action(n::X) { } + + void act() { + auto f = std::mem_fn(&server::action); + n::X x; + f(this, x); + } +}; +