From 4b68a599b2ca5e6b5f29a8e29bdabd6725373136 Mon Sep 17 00:00:00 2001 From: Chris Kennelly Date: Fri, 11 Jan 2019 17:09:22 +0000 Subject: Implementation Feature Test Macros for P0722R3 Summary: P1353R0, adopted in San Diego, specified an implementation feature test macro for destroying delete (P0722R3). The implementation of the feature (https://reviews.llvm.org/rL315662) is not guarded behind a flag, so the macro is not conditional on language version. Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55741 --- clang/test/Lexer/cxx-features.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test') diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index e4fea0b5bb2..09b82b7c47e 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -34,6 +34,10 @@ #error "wrong value for __cpp_char8_t" #endif +#if check(impl_destroying_delete, 201806, 201806, 201806, 201806, 201806) +#error "wrong value for __cpp_impl_destroying_delete" +#endif + // --- C++17 features --- #if check(hex_float, 0, 0, 0, 201603, 201603) -- cgit v1.2.3