diff options
author | Chris Kennelly <ckennelly@google.com> | 2019-01-11 17:09:22 +0000 |
---|---|---|
committer | Chris Kennelly <ckennelly@google.com> | 2019-01-11 17:09:22 +0000 |
commit | 4b68a599b2ca5e6b5f29a8e29bdabd6725373136 (patch) | |
tree | 12909b2ee5fc582879cd67092988b20233510cf5 /clang/test | |
parent | c6370aa6eada42dea81f3a5d5c31f8f4957b5903 (diff) |
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
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |