// Copyright (C) 2015-2017 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-do compile { target c++14 } } // This is a compile-only test with minimal includes #include #include // No guarantee that includes this! using namespace std::experimental; template struct tester { using joiner_type = ostream_joiner; using ostream_type = std::basic_ostream; using test_type = decltype(make_ostream_joiner(std::declval(), std::declval())); static_assert(is_same_v, ""); static_assert(is_same_v, ""); static_assert(is_same_v>, ""); static_assert(is_same_v, ""); static_assert(is_same_v, ""); static_assert(is_same_v, ""); static_assert(is_same_v, ""); static_assert(is_same_v, ""); static_assert(is_same_v, ""); }; tester cc; tester ic; #if _GLIBCXX_USE_WCHAR_T tester ww; tester iw; #endif std::ostream& os(); // Ensure that contents of are defined by : std::reverse_iterator ii; std::move_iterator mi; std::istream_iterator isi; std::ostream_iterator osi(os()); std::istreambuf_iterator isbi; std::ostreambuf_iterator osbi(os());