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 | |
17 | static_assert(std::is_pod<int>::value); // expected-warning {{'is_pod<int>' is deprecated}} |
18 | static_assert(std::is_pod_v<int>); // expected-warning {{'is_pod_v<int>' is deprecated}} |
19 |