From: François Dumont Date: Sun, 16 Jan 2011 10:35:28 +0000 (+0100) Subject: erase_after1_neg.cc: Move to this. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b8901caa0c57c993149b2b150f09abeef7ed679;p=gcc.git erase_after1_neg.cc: Move to this. 2011-01-16 François Dumont * testsuite/23_containers/forward_list/debug/erase_after1_neg.cc: Move to this. Use _neg suffix. * testsuite/23_containers/forward_list/debug/erase_after1.cc: ...from this. * testsuite/23_containers/forward_list/debug/erase_after2_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after2.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after3_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after3.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after4_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after4.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after5_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after5.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after6_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after6.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after7_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after7.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after8_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after8.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after9_neg.cc: Same. * testsuite/23_containers/forward_list/debug/erase_after9.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after1_neg.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after1.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after2_neg.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after2.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after3_neg.cc: Same. * testsuite/23_containers/forward_list/debug/insert_after3.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after1_neg.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after1.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after2_neg.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after2.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after3_neg.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after3.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after4_neg.cc: Same. * testsuite/23_containers/forward_list/debug/splice_after4.cc: Same. From-SVN: r168850 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 57295dfd86f..631bcb9014d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,55 @@ +2011-01-16 François Dumont + + * testsuite/23_containers/forward_list/debug/erase_after1_neg.cc: Move + to this. Use _neg suffix. + * testsuite/23_containers/forward_list/debug/erase_after1.cc: ...from + this. + * testsuite/23_containers/forward_list/debug/erase_after2_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after2.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after3_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after3.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after4_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after4.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after5_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after5.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after6_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after6.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after7_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after7.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after8_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after8.cc: Same. + * testsuite/23_containers/forward_list/debug/erase_after9_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/erase_after9.cc: Same. + * testsuite/23_containers/forward_list/debug/insert_after1_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/insert_after1.cc: Same. + * testsuite/23_containers/forward_list/debug/insert_after2_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/insert_after2.cc: Same. + * testsuite/23_containers/forward_list/debug/insert_after3_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/insert_after3.cc: Same. + * testsuite/23_containers/forward_list/debug/splice_after1_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/splice_after1.cc: Same. + * testsuite/23_containers/forward_list/debug/splice_after2_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/splice_after2.cc: Same. + * testsuite/23_containers/forward_list/debug/splice_after3_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/splice_after3.cc: Same. + * testsuite/23_containers/forward_list/debug/splice_after4_neg.cc: + Same. + * testsuite/23_containers/forward_list/debug/splice_after4.cc: Same. + 2011-01-14 Benjamin Kosnik PR libstdc++/36104 diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1.cc deleted file mode 100644 index f2cd59370a2..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1.cc +++ /dev/null @@ -1,45 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include -#include - -void -test01() -{ - bool test __attribute__((unused)) = true; - - std::forward_list fl1{1, 2, 3}; - - auto it = fl1.begin(); - VERIFY( *it == 1 ); - - fl1.erase_after(fl1.before_begin()); - - VERIFY( *it == 1 ); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1_neg.cc new file mode 100644 index 00000000000..f2cd59370a2 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after1_neg.cc @@ -0,0 +1,45 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include +#include + +void +test01() +{ + bool test __attribute__((unused)) = true; + + std::forward_list fl1{1, 2, 3}; + + auto it = fl1.begin(); + VERIFY( *it == 1 ); + + fl1.erase_after(fl1.before_begin()); + + VERIFY( *it == 1 ); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2.cc deleted file mode 100644 index 6e243359505..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2.cc +++ /dev/null @@ -1,36 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - fl1.erase_after(fl1.end()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2_neg.cc new file mode 100644 index 00000000000..6e243359505 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after2_neg.cc @@ -0,0 +1,36 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + fl1.erase_after(fl1.end()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3.cc deleted file mode 100644 index 70a0a345688..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3.cc +++ /dev/null @@ -1,36 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1}; - fl1.erase_after(fl1.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3_neg.cc new file mode 100644 index 00000000000..70a0a345688 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after3_neg.cc @@ -0,0 +1,36 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1}; + fl1.erase_after(fl1.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4.cc deleted file mode 100644 index 9e4b3d49933..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.erase_after(fl1.before_begin(), fl2.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4_neg.cc new file mode 100644 index 00000000000..9e4b3d49933 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after4_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.erase_after(fl1.before_begin(), fl2.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5.cc deleted file mode 100644 index 6aabbea6085..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.erase_after(fl2.before_begin(), fl2.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5_neg.cc new file mode 100644 index 00000000000..6aabbea6085 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after5_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.erase_after(fl2.before_begin(), fl2.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6.cc deleted file mode 100644 index 29c418a08dd..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6.cc +++ /dev/null @@ -1,37 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - - fl1.erase_after(fl1.before_begin(), fl1.before_begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6_neg.cc new file mode 100644 index 00000000000..29c418a08dd --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after6_neg.cc @@ -0,0 +1,37 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + + fl1.erase_after(fl1.before_begin(), fl1.before_begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7.cc deleted file mode 100644 index 9390827c086..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7.cc +++ /dev/null @@ -1,37 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - - fl1.erase_after(fl1.end(), fl1.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7_neg.cc new file mode 100644 index 00000000000..9390827c086 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after7_neg.cc @@ -0,0 +1,37 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + + fl1.erase_after(fl1.end(), fl1.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8.cc deleted file mode 100644 index 77dcb750eb7..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8.cc +++ /dev/null @@ -1,37 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - - fl1.erase_after(fl1.begin(), fl1.before_begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8_neg.cc new file mode 100644 index 00000000000..77dcb750eb7 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after8_neg.cc @@ -0,0 +1,37 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + + fl1.erase_after(fl1.begin(), fl1.before_begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9.cc deleted file mode 100644 index 42fe2023423..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9.cc +++ /dev/null @@ -1,39 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - - auto it = fl1.begin(); - ++it; - fl1.erase_after(it, fl1.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9_neg.cc new file mode 100644 index 00000000000..42fe2023423 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/erase_after9_neg.cc @@ -0,0 +1,39 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + + auto it = fl1.begin(); + ++it; + fl1.erase_after(it, fl1.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1.cc deleted file mode 100644 index 08d49a54ab3..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.insert_after(fl1.before_begin(), fl2.before_begin(), fl2.end()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1_neg.cc new file mode 100644 index 00000000000..08d49a54ab3 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after1_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.insert_after(fl1.before_begin(), fl2.before_begin(), fl2.end()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2.cc deleted file mode 100644 index db9fd5e093c..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{0}; - - fl1.insert_after(fl1.before_begin(), fl2.begin(), fl2.before_begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2_neg.cc new file mode 100644 index 00000000000..db9fd5e093c --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after2_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{0}; + + fl1.insert_after(fl1.before_begin(), fl2.begin(), fl2.before_begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3.cc deleted file mode 100644 index 4ad698f3c95..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3.cc +++ /dev/null @@ -1,37 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - - fl1.insert_after(fl1.end(), 4); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3_neg.cc new file mode 100644 index 00000000000..4ad698f3c95 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/insert_after3_neg.cc @@ -0,0 +1,37 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + + fl1.insert_after(fl1.end(), 4); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1.cc deleted file mode 100644 index 3ee7f689aeb..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1.cc +++ /dev/null @@ -1,36 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - fl1.splice_after(fl1.begin(), std::move(fl1)); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1_neg.cc new file mode 100644 index 00000000000..3ee7f689aeb --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after1_neg.cc @@ -0,0 +1,36 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + fl1.splice_after(fl1.begin(), std::move(fl1)); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2.cc deleted file mode 100644 index 6a7fcfb22c2..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.splice_after(fl1.before_begin(), std::move(fl2), fl1.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2_neg.cc new file mode 100644 index 00000000000..6a7fcfb22c2 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after2_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.splice_after(fl1.before_begin(), std::move(fl2), fl1.begin()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3.cc deleted file mode 100644 index 55e50dc0511..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3.cc +++ /dev/null @@ -1,38 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.splice_after(fl1.before_begin(), std::move(fl2), fl2.end()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3_neg.cc new file mode 100644 index 00000000000..55e50dc0511 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after3_neg.cc @@ -0,0 +1,38 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.splice_after(fl1.before_begin(), std::move(fl2), fl2.end()); +} + +int +main() +{ + test01(); + return 0; +} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4.cc deleted file mode 100644 index 4c161906e0a..00000000000 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4.cc +++ /dev/null @@ -1,39 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// { dg-require-debug-mode "" } -// { dg-do run { xfail *-*-* } } - -// Copyright (C) 2010 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 Pred 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 -// . - -#include - -void -test01() -{ - std::forward_list fl1{1, 2, 3}; - std::forward_list fl2{1, 2, 3}; - - fl1.splice_after(fl1.before_begin(), - std::move(fl2), ++(++fl2.begin()), ++fl2.begin()); -} - -int -main() -{ - test01(); - return 0; -} diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4_neg.cc new file mode 100644 index 00000000000..4c161906e0a --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/splice_after4_neg.cc @@ -0,0 +1,39 @@ +// { dg-options "-std=gnu++0x" } +// { dg-require-debug-mode "" } +// { dg-do run { xfail *-*-* } } + +// Copyright (C) 2010 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 Pred 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 +// . + +#include + +void +test01() +{ + std::forward_list fl1{1, 2, 3}; + std::forward_list fl2{1, 2, 3}; + + fl1.splice_after(fl1.before_begin(), + std::move(fl2), ++(++fl2.begin()), ++fl2.begin()); +} + +int +main() +{ + test01(); + return 0; +}