CWG 1394: Incomplete types as parameters of deleted functions

Follow-up to previous commit: Add a DR test-case so the
make_cxx_dr_status automation works.

Bug: #52802
Fixes: 50b1faf5c1
This commit is contained in:
James Y Knight 2022-05-22 10:12:50 -04:00
parent 258dac43d6
commit 69c0af3de2
1 changed files with 7 additions and 0 deletions

View File

@ -450,6 +450,13 @@ namespace dr1391 { // dr1391: partial
}
}
namespace dr1394 { // dr1394: 15
#if __cplusplus >= 201103L
struct Incomplete;
Incomplete f(Incomplete) = delete; // well-formed
#endif
}
namespace dr1399 { // dr1399: dup 1388
template<typename ...T> void f(T..., int, T...) {} // expected-note {{candidate}} expected-error 0-1{{C++11}}
void g() {