Skip to content

Commit 5ac1c34

Browse files
committed
This overlaps w/ cwg2084, so updating dr tests.
1 parent 409f2e9 commit 5ac1c34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clang/test/CXX/drs/cwg20xx.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,15 @@ namespace cwg2083 { // cwg2083: partial
401401
#endif
402402
} // namespace cwg2083
403403

404+
namespace cwg2084 { // cwg2084: 3.1
405+
struct S {
406+
S();
407+
};
408+
union U {
409+
S s{}; // cxx98-error {{function definition does not declare parameters}}
410+
} u;
411+
} // namespace cwg2084
412+
404413
namespace cwg2091 { // cwg2091: 10
405414
template<int &> struct X;
406415
template<int &N> void f(X<N>&);

0 commit comments

Comments
 (0)