This revision was automatically updated to reflect the committed changes. Closed by commit rG33e84315e7d6: [clang] Add test for CWG255 (authored by Endill).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D147549/new/ https://reviews.llvm.org/D147549 Files: clang/test/CXX/drs/dr2xx.cpp clang/www/cxx_dr_status.html Index: clang/www/cxx_dr_status.html =================================================================== --- clang/www/cxx_dr_status.html +++ clang/www/cxx_dr_status.html @@ -1568,7 +1568,7 @@ <td><a href="https://wg21.link/cwg255">255</a></td> <td>CD6</td> <td>Placement deallocation functions and lookup ambiguity</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="256"> <td><a href="https://wg21.link/cwg256">256</a></td> Index: clang/test/CXX/drs/dr2xx.cpp =================================================================== --- clang/test/CXX/drs/dr2xx.cpp +++ clang/test/CXX/drs/dr2xx.cpp @@ -3,6 +3,7 @@ // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -std=c++2b %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // PR13819 -- __SIZE_TYPE__ is incompatible. typedef __SIZE_TYPE__ size_t; // expected-error 0-1 {{extension}} @@ -692,6 +693,14 @@ A<C>::type n; // expected-note {{instantiation of}} } +namespace dr255 { // dr255: yes +struct S { + void operator delete(void *){}; + void operator delete(void *, int){}; +}; +void f(S *p) { delete p; } +} // namespace dr255 + // dr256: dup 624 namespace dr257 { // dr257: yes
Index: clang/www/cxx_dr_status.html =================================================================== --- clang/www/cxx_dr_status.html +++ clang/www/cxx_dr_status.html @@ -1568,7 +1568,7 @@ <td><a href="https://wg21.link/cwg255">255</a></td> <td>CD6</td> <td>Placement deallocation functions and lookup ambiguity</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="256"> <td><a href="https://wg21.link/cwg256">256</a></td> Index: clang/test/CXX/drs/dr2xx.cpp =================================================================== --- clang/test/CXX/drs/dr2xx.cpp +++ clang/test/CXX/drs/dr2xx.cpp @@ -3,6 +3,7 @@ // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -std=c++2b %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // PR13819 -- __SIZE_TYPE__ is incompatible. typedef __SIZE_TYPE__ size_t; // expected-error 0-1 {{extension}} @@ -692,6 +693,14 @@ A<C>::type n; // expected-note {{instantiation of}} } +namespace dr255 { // dr255: yes +struct S { + void operator delete(void *){}; + void operator delete(void *, int){}; +}; +void f(S *p) { delete p; } +} // namespace dr255 + // dr256: dup 624 namespace dr257 { // dr257: yes
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits