// { dg-do compile { target c++11 } } // 2011-05-19 Paolo Carlini // // Copyright (C) 2011-2019 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 // . #include #include using namespace __gnu_test; typedef std::tuple tt1; typedef std::tuple tt2; typedef std::tuple tt3; typedef std::tuple tt4; typedef std::tuple tt5; typedef std::tuple tt6; typedef std::tuple tt7; typedef std::tuple tt8; typedef std::tuple tt9; typedef std::tuple tt10; typedef std::tuple tt11; typedef std::tuple tt12; typedef std::tuple tt13; typedef std::tuple tt14; typedef std::tuple tt15; typedef std::tuple tt16; typedef std::tuple tt17; typedef std::tuple tt18; typedef std::tuple tt19; typedef std::tuple tt20; typedef std::tuple tt21; typedef std::tuple tt22; typedef std::tuple tt23; typedef std::tuple tt24; typedef std::tuple tt25; static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error"); static_assert(!noexcept(std::declval().swap(std::declval())), "Error");