forked from OSchip/llvm-project
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:
parent
258dac43d6
commit
69c0af3de2
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue