[libcxx-commits] [libcxx] [libc++] Fix header deprecations (PR #163356)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 23 09:16:33 PDT 2025


================
@@ -14,12 +14,6 @@
 // UNSUPPORTED: c++03, c++11, c++14
 // UNSUPPORTED: clang-modules-build
 
-#include "test_macros.h"
-
 #include <ccomplex>
 
-#if TEST_STD_VER >= 20
-// expected-warning at ccomplex:* {{'__standard_header_ccomplex' is deprecated: removed in C++20. Include <complex> instead.}}
-#else
-// expected-warning at ccomplex:* {{'__standard_header_ccomplex' is deprecated: Include <complex> instead.}}
-#endif
+// expected-warning at ccomplex:* {{<ccomplex> is removed in C++20. Include <complex> instead.}}
----------------
ldionne wrote:

```suggestion
// expected-warning at ccomplex:* {{<ccomplex> is deprecated in C++17 and removed in C++20. Include <complex> instead.}}
```

The same applies to other headers.

https://github.com/llvm/llvm-project/pull/163356


More information about the libcxx-commits mailing list