Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions clang/test/CXX/drs/cwg1xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,8 +1314,25 @@ namespace cwg188 { // cwg188: yes
static_assert(sizeof(0, c) == 10, "");
}

// cwg190 FIXME: add codegen test for tbaa
// or implement C++20 std::is_layout_compatible and test it this way
namespace cwg190 { // cwg190: 19
struct A {
int a;
static double x;
int b;
void y();
int c;
};

struct B {
int a;
void y();
int b;
static double x;
int c;
};

static_assert(__is_layout_compatible(A, B), "");
} // namespace cwg190

int cwg191_j;
namespace cwg191 { // cwg191: yes
Expand Down
2 changes: 1 addition & 1 deletion clang/www/cxx_dr_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td><a href="https://cplusplus.github.io/CWG/issues/190.html">190</a></td>
<td>TC1</td>
<td>Layout-compatible POD-struct types</td>
<td class="unknown" align="center">Unknown</td>
<td class="full" align="center">Clang 19</td>
</tr>
<tr id="191">
<td><a href="https://cplusplus.github.io/CWG/issues/191.html">191</a></td>
Expand Down
Loading