[clang] cf61e34 - [clang] Add test for CWG1606 (#87274)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 07:40:43 PDT 2024
Author: Yuri Istomin
Date: 2024-04-02T18:40:40+04:00
New Revision: cf61e347ba3c847f061563d05096e7589fd9ec4b
URL: https://github.com/llvm/llvm-project/commit/cf61e347ba3c847f061563d05096e7589fd9ec4b
DIFF: https://github.com/llvm/llvm-project/commit/cf61e347ba3c847f061563d05096e7589fd9ec4b.diff
LOG: [clang] Add test for CWG1606 (#87274)
https://cplusplus.github.io/CWG/issues/1606.html
Added:
Modified:
clang/test/CXX/drs/dr16xx.cpp
clang/www/cxx_dr_status.html
Removed:
################################################################################
diff --git a/clang/test/CXX/drs/dr16xx.cpp b/clang/test/CXX/drs/dr16xx.cpp
index 766c90d3bc7bda..f4d6c04fb8e073 100644
--- a/clang/test/CXX/drs/dr16xx.cpp
+++ b/clang/test/CXX/drs/dr16xx.cpp
@@ -35,6 +35,17 @@ void g() {
}
} // namespace dr1601
+namespace dr1606 { // dr1606: 3.1
+#if __cplusplus >= 201103L
+ std::size_t test() {
+ int i = 1;
+ int j = 1;
+ auto f = [=]{ return i + j; };
+ return sizeof(f);
+ }
+#endif
+} // namespace dr1606
+
namespace dr1611 { // dr1611: dup 1658
struct A { A(int); };
struct B : virtual A { virtual void f() = 0; };
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index c20a5d021e9d95..5e1e03dec1d484 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -9444,7 +9444,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/1606.html">1606</a></td>
<td>NAD</td>
<td><TT>sizeof</TT> closure class</td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Clang 3.1</td>
</tr>
<tr id="1607">
<td><a href="https://cplusplus.github.io/CWG/issues/1607.html">1607</a></td>
More information about the cfe-commits
mailing list