libstdc++-v3/ChangeLog:
* testsuite/20_util/tuple/78939.cc: Suppress warnings about
deprecation of volatile-qualified structured bindings in C++20.
* testsuite/20_util/variable_templates_for_traits.cc: Likewise
for deprecation of is_pod in C++20
// <http://www.gnu.org/licenses/>.
// { dg-options "-std=gnu++17" }
+// { dg-additional-options "-Wno-deprecated" { target c++2a } }
// { dg-do compile { target c++17 } }
// PR libstdc++/78939
test02()
{
A a{};
- volatile auto [i, j] = a;
+ volatile auto [i, j] = a; // deprecated in C++20
return i + j;
}
test03()
{
A a{};
- const volatile auto [i, j] = a;
+ const volatile auto [i, j] = a; // deprecated in C++20
return i + j;
}
// { dg-options "-std=gnu++17" }
-// { dg-do compile }
+// { dg-additional-options "-Wno-deprecated" { target c++2a } }
+// { dg-do compile { target c++17 } }
// Copyright (C) 2014-2020 Free Software Foundation, Inc.
//
static_assert(!is_standard_layout_v<NType>
&& !is_standard_layout<NType>::value, "");
+// Deprecated in C++20
static_assert(is_pod_v<int>
&& is_pod<int>::value, "");
static_assert(!is_pod_v<NType>