-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-do run { target c++11 } }
// Copyright (C) 2015-2025 Free Software Foundation, Inc.
// PR 14026
// 18.6.4 uncaught_exception
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
#include <cstdlib>
#include <exception>
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
#include <functional>
-// { dg-additional-options "-Wno-deprecated" { target c++17 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++17 } }
// { dg-do compile { target c++11 } }
// 2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
-// { dg-additional-options "-Wno-deprecated" { target c++17 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++17 } }
// { dg-do compile { target c++11 } }
// 2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
-// { dg-additional-options "-Wno-deprecated" { target c++17 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++17 } }
// { dg-do compile { target c++11 } }
// 2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
// { dg-do compile { target c++11 } }
-// { dg-additional-options "-Wno-deprecated" { target { c++2a } } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target { c++2a } } }
// 2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
// Copyright (C) 2010-2025 Free Software Foundation, Inc.
// { dg-do compile { target c++11 } }
-// { dg-additional-options "-Wno-deprecated" { target { c++2a } } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target { c++2a } } }
// 2010-02-21 Paolo Carlini <paolo.carlini@oracle.com>
//
// { dg-do compile { target c++11 } }
-// { dg-additional-options "-Wno-deprecated" { target { c++2a } } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target { c++2a } } }
// 2010-02-21 Paolo Carlini <pcarlini@suse.de>
//
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated -Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
// { dg-require-effective-target hosted }
// { dg-do run { target c++11 } }
// { dg-require-gthreads "" }
// { dg-require-effective-target hosted }
-// { dg-additional-options "-Wno-deprecated" { target c++20 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++20 } }
#include <memory>
// { dg-do run { target c++11 } }
// { dg-require-gthreads "" }
// { dg-require-effective-target hosted }
-// { dg-additional-options "-Wno-deprecated" { target c++20 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++20 } }
#include <memory>
// { dg-do run { target c++11 } }
// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-gthreads "" }
-// { dg-additional-options "-Wno-deprecated" { target c++20 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++20 } }
// Copyright (C) 2014-2025 Free Software Foundation, Inc.
//
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
// { dg-require-effective-target hosted }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do run { target c++11 } }
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-add-options using-deprecated }
// { dg-do compile { target c++11 } }
-// { dg-additional-options "-Wno-deprecated" { target c++2a } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++2a } }
// { dg-do compile { target c++17 } }
// Copyright (C) 2014-2025 Free Software Foundation, Inc.
-// { dg-options "-Wno-deprecated" }
+// { dg-options "-Wno-deprecated-declarations" }
// { dg-do compile { target c++11 } }
// std::shared_ptr is not freestanding.
// { dg-do compile { target c++14 } }
-// { dg-additional-options "-Wno-deprecated" { target { c++2a } } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target { c++2a } } }
// Copyright (C) 2014-2025 Free Software Foundation, Inc.
//