1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// REQUIRES: std-at-least-c++20
10
11// <type_traits>
12
13// is_pod and is_pod_v are deprecated in C++20 by P0767R1
14
15#include <type_traits>
16
17static_assert(std::is_pod<int>::value); // expected-warning {{'is_pod<int>' is deprecated}}
18static_assert(std::is_pod_v<int>); // expected-warning {{'is_pod_v<int>' is deprecated}}
19

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_pod.deprecated.verify.cpp