diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-12-21 07:05:36 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-12-21 07:05:36 +0000 |
commit | 24b719c0fc2b1251a37741a2339ffcfe9cdcd475 (patch) | |
tree | bf8ec7f429da912c28cb060306760cc1d8f16c7d /test/CXX | |
parent | 4e2a388a999e41a12743314deb9e0f060252a621 (diff) |
[Sema] Produce diagnostics when C++17 aligned allocation/deallocation
functions that are unavailable on Darwin are explicitly called or called
from deleting destructors.
rdar://problem/40736230
Differential Revision: https://reviews.llvm.org/D47757
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/drs/dr2xx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/drs/dr2xx.cpp b/test/CXX/drs/dr2xx.cpp index 4e745ef2f4..b69c014b58 100644 --- a/test/CXX/drs/dr2xx.cpp +++ b/test/CXX/drs/dr2xx.cpp @@ -718,7 +718,7 @@ namespace dr261 { // dr261: no A() {} }; - // FIXME: These are ill-formed, with a required diagnostic, for the same + // FIXME: This is ill-formed, with a required diagnostic, for the same // reason. struct B { inline void operator delete(void*) __attribute__((unused)); @@ -726,7 +726,7 @@ namespace dr261 { // dr261: no }; struct C { inline void operator delete(void*) __attribute__((unused)); - virtual ~C() {} + virtual ~C() {} // expected-warning {{'operator delete' was marked unused but was used}} }; struct D { |