// { dg-do compile }
// { dg-options "-D_GLIBCXX_NO_ASSERT" }
+// { dg-require-effective-target hosted }
// NB: This is done to force any generated and possibly included PCH
// to be invalid, and also to remove cassert from the include set.
// { dg-do run { target c++17 } }
// { dg-require-cstdint "" }
+// { dg-require-effective-target hosted }
#include <cstdlib>
#include <cstdint>
// { dg-do run }
// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
+// { dg-require-effective-target hosted }
#include <new>
#include <stdlib.h>
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
// PR libstdc++/105957
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 20.4.1.1 allocator members
#include <memory>
// { dg-do compile { target std_allocator_new } }
// { dg-add-options no_pch }
+// { dg-require-effective-target hosted }
// PR libstdc++/64135
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <new>
// { dg-options "-faligned-new" }
// { dg-do run { target { c++11 && { c++17 || std_allocator_new } } } }
// { dg-require-cstdint "" }
+// { dg-require-effective-target hosted }
#include <memory>
#include <cstddef>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <memory>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-std=gnu++20" }
+// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-std=gnu++20" }
+// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-std=gnu++20" }
+// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
#include <version>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-std=gnu++2a" }
-// { dg-do compile { target c++2a } }
+// { dg-options "-std=gnu++20" }
+// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
#include <memory>
-// { dg-options "-std=gnu++2a" }
-// { dg-do run { target c++2a } }
+// { dg-options "-std=gnu++20" }
+// { dg-do run { target c++20 } }
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2007-05-29 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 23.3.5.2 bitset members
#include <bitset>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 23.3.5.2 bitset members
#include <bitset>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <debug/bitset>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// 2010-10-11 Paolo Carlini <paolo.carlini@oracle.com>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <bitset>
#include <testsuite_hooks.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <debug/bitset>
#include <testsuite_hooks.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <bitset>
#include <testsuite_hooks.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <debug/bitset>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++2a -pedantic" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
+
#include <debug/bitset>
bool
// { dg-options "-std=gnu++23" }
// { dg-do preprocess { target c++23 } }
+// { dg-require-effective-target hosted }
#include <version>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-options "-O1" }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// PR middle-end/89303
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++17 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// 2007-07-10 Paolo Carlini <pcarlini@suse.de>
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// 2007-07-10 Paolo Carlini <pcarlini@suse.de>
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
//
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// libstdc++/65760
// c.f. https://gcc.gnu.org/ml/libstdc++/2015-04/msg00116.html
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
// 2005-01-15 Douglas Gregor <dgregor@cs.indiana.edu>
//
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
// PR 91456
// std::function and std::is_invocable_r do not understand guaranteed elision
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// libstdc++/55320
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <testsuite_hooks.h>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <testsuite_hooks.h>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// PR libstdc++/70692
// No warning when function<const int&(...)> binds a reference to a temporary
#include <functional>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
+
#include <functional>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
+
#include <functional>
struct X
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-options "-fno-rtti" }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <cstddef>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-options "-pedantic-errors" }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// 2007-07-10 Paolo Carlini <pcarlini@suse.de>
//
// { dg-options "-std=gnu++23" }
// { dg-do run { target c++23 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <utility>
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
#include <functional>
// { dg-options "-std=gnu++23" }
// { dg-do run { target c++23 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target { c++11 && { ! c++23 } } } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator use
+// { dg-require-effective-target hosted }
#include <memory>
#include <type_traits>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator use
+// { dg-require-effective-target hosted }
// PR libstdc++/69293
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <utility>
#include <tuple>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator use
+// { dg-require-effective-target hosted }
#include <memory>
#include <scoped_allocator>
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator use
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2006-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
// { dg-require-gthreads "" }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
// { dg-require-gthreads "" }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2006-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++17 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2016-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2019-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2014-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2019-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2016-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// 2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-options "-fno-rtti" }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2014-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target { c++11 } } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-options "-fno-rtti" }
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2014-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++20 -fno-lifetime-dse -O0" }
// { dg-do run { target c++20 } }
+// { dg-require-effective-target hosted }
// C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-options "-fno-rtti" }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++20" }
// { dg-do preprocess { target c++20 } }
+// { dg-require-effective-target hosted }
// C++20 20.11.3.7 shared_ptr Creation [util.smartptr.shared.create]
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// 2010-06-11 Paolo Carlini <paolo.carlini@oracle.com>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-options "-fno-rtti" }
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2016-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2005-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2006-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
#include <memory>
// 20.4.3 temporary buffers
+// { dg-require-effective-target hosted }
+
#include <memory>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
#include <tuple>
#include <memory>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
#include <tuple>
#include <memory>
// { dg-do run { target c++14 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
// Copyright (C) 2016-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
//
// Copyright (C) 2019-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
// Copyright (C) 2015-2022 Free Software Foundation, Inc.
//
// Verify P2321R2 "zip" enhancements to std::tuple.
// { dg-options "-std=gnu++23" }
// { dg-do run { target c++23 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
#include <tuple>
#include <memory>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++14 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++14 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++20 -fno-lifetime-dse -O0" }
// { dg-do run { target c++2a } }
// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-do run { target c++14 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2013-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// FIXME [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
// PR libstdc++/69293
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
+// TODO [!HOSTED]: avoidable std::allocator usage
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// 2011-06-14 Paolo Carlini <paolo.carlini@oracle.com>
//
#include <testsuite_tr1.h>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
int main()
{
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2006-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2021-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++98" }
// { dg-do compile { target *-*-linux-gnu } }
+// { dg-require-effective-target hosted }
#include <cstdlib>
// { dg-do compile { target c++17 } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++20" }
// { dg-do preprocess { target c++20 } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-06-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-06-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-06-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-06-25 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
#include <iterator>
#include <iostream>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2020-2022 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 1999-06-28 bkoz
// Copyright (C) 1999-2022 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// Copyright (C) 2011-2022 Free Software Foundation, Inc.
//
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-06-25 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// { dg-do compile }
+// { dg-require-effective-target hosted }
+
// 2001-04-30 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001-2022 Free Software Foundation, Inc.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
#include <algorithm>
#include <functional>
// { dg-do compile }
+// { dg-require-effective-target hosted }
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// 25.3.4 [lib.alg.merge]
+// <testsuite_new_operators.h> requires malloc/free.
+// { dg-require-effective-target hosted }
+
#include <algorithm>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// { dg-require-effective-target hosted }
#include <algorithm>
#include <functional>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <functional>
#include <algorithm>
// <http://www.gnu.org/licenses/>.
// { dg-do preprocess { target c++17 } }
+// { dg-require-effective-target hosted }
#include <version>
// <http://www.gnu.org/licenses/>.
// { dg-add-options using-deprecated }
+// { dg-require-effective-target hosted }
// 25.2.11 random_shuffle()
// { dg-do run { target c++11 } }
// { dg-add-options using-deprecated }
+// { dg-require-effective-target hosted }
// Copyright (C) 2009-2022 Free Software Foundation, Inc.
//
// { dg-options "-Wno-deprecated-declarations" }
// { dg-do compile }
// { dg-add-options using-deprecated }
+// { dg-require-effective-target hosted }
// 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// Transitively includes string related bits.
+// { dg-require-effective-target hosted }
+
#include <algorithm>
#include <functional>
#include <tr1/functional>
// 25.2.12 [lib.alg.partitions] Partitions.
+// std::stable_partition is not freestanding.
+// { dg-require-effective-target hosted }
+
#include <algorithm>
#include <functional>
#include <testsuite_new_operators.h>
// { dg-options "-std=gnu++2a" }
// { dg-do run { target c++2a } }
+// std::stable_partition is not freestanding.
+// { dg-require-effective-target hosted }
+
#include <algorithm>
#include <testsuite_hooks.h>
#include <testsuite_iterators.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// std::stable_partition is not freestanding.
+// { dg-require-effective-target hosted }
+
// 25.2.12 [lib.alg.partitions] Partitions.
#include <algorithm>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// std::stable_partition is not freestanding.
+// { dg-require-effective-target hosted }
+
// 25.2.12 [lib.alg.partitions] Partitions.
#include <algorithm>
// { dg-options "-Wno-deprecated-declarations" }
// { dg-do compile }
+// { dg-require-effective-target hosted }
// 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
// { dg-options "-Wno-deprecated-declarations" }
// { dg-do compile }
+// std::stable_partition is not freestanding.
+// { dg-require-effective-target hosted }
+
// 2007-09-20 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
// 25.3.1.2 [lib.stable.sort]
+// testsuite_new_operators.h requires malloc/free.
+// { dg-require-effective-target hosted }
+
#include <algorithm>
#include <testsuite_new_operators.h>
#include <testsuite_hooks.h>
// { dg-options "-std=gnu++2a" }
// { dg-do preprocess { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
#include <cstdlib>
#include <testsuite_hooks.h>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// 17.4.1.2 Headers, cstdlib
#include <cstdlib>
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
// PR libstdc++/60401
// <http://www.gnu.org/licenses/>.
// { dg-do compile { target c++11 } }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
// NB: Don't include any other headers in this file.
// LWG 2192 requires <cstdlib> to declare overloads for floating point types.
// { dg-do compile { target c++11 } }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// NB: Don't include any other headers in this file.
// LWG 2192 requires abs to be ill-formed for unsigned arguments.
#include <cstdlib>
// <http://www.gnu.org/licenses/>.
// { dg-do compile }
+// { dg-require-effective-target hosted }
// NB: Don't include any other headers in this file.
// LWG 2735. std::abs(short), std::abs(signed char) and others should return
// { dg-do compile }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do compile }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do compile }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-do compile { target c++11 } }
+// Math-related cstdlib bits are not freestanding.
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2007-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-options "-std=gnu++2a" }
// { dg-do preprocess { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do preprocess { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-effective-target cxx11_abi }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-effective-target cxx11_abi }
+// { dg-require-effective-target hosted }
#include <version>
// 27.4.3 fpos
// { dg-do compile }
+// { dg-require-effective-target hosted }
#include <limits>
#include <iterator>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 27.4.3 fpos
#include <iterator>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 27.4.3 fpos
#include <iterator>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
+// { dg-require-effective-target hosted }
+
// 27.4.3 fpos
#include <iterator>
// { dg-options "-std=gnu++23" }
// { dg-do compile { target c++23 } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-do compile { target c++11 } }
+
+// std::shared_ptr is not freestanding.
+// { dg-require-effective-target hosted }
+
// DR 3220. P0558 broke conforming C++14 uses of atomic shared_ptr
#include <atomic>
// { dg-do run { target c++11 } }
// { dg-require-atomic-builtins "" }
+// std::abs from <cstdlib> is not freestanding.
+// { dg-require-effective-target hosted }
+
// Copyright (C) 2012-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-effective-target gthreads }
+// { dg-require-effective-target hosted }
#include <atomic>
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
// { dg-require-gthreads "" }
+// { dg-require-effective-target hosted }
#include <atomic>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-effective-target gthreads }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++23" }
// { dg-do preprocess { target c++23 } }
+// <stdatomic.h> is not freestanding.
+// { dg-require-effective-target hosted }
+
#include <version>
#ifndef __cpp_lib_stdatomic_h
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-effective-target gthreads }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
// { dg-require-gthreads "" }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <version>
// { dg-do run }
+// { dg-require-effective-target hosted }
#include <cxxabi.h>
#include <cassert>
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
#include <memory>
#include <testsuite_hooks.h>
// { dg-do run { target c++11 } }
// { dg-options "-g -O0" }
+// { dg-require-effective-target hosted }
// Copyright (C) 2016-2022 Free Software Foundation, Inc.
//
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <algorithm>
#include <ranges>
// { dg-options "-std=gnu++20" }
// { dg-do run { target c++20 } }
+// { dg-require-effective-target hosted }
#include <algorithm>
#include <ranges>
+#include <string_view>
#include <testsuite_hooks.h>
// Verify P1739R4 (and LWG 3407) changes to views::take/drop/counted.
// { dg-options "-std=gnu++2a" }
// { dg-do compile { target c++2a } }
+// { dg-require-effective-target hosted }
#include <sstream>
#include <ranges>
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
// P2325R3 "Views should not be required to be default constructible"
#include <ranges>