From 69c0af3de224131cca844debd12872d4d1686800 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Sun, 22 May 2022 10:12:50 -0400 Subject: [PATCH] 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: 50b1faf5c188956fb59ea7d9f9d470591771aedb --- clang/test/CXX/drs/dr13xx.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang/test/CXX/drs/dr13xx.cpp b/clang/test/CXX/drs/dr13xx.cpp index 57d0f3c..9efbd52 100644 --- a/clang/test/CXX/drs/dr13xx.cpp +++ b/clang/test/CXX/drs/dr13xx.cpp @@ -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 void f(T..., int, T...) {} // expected-note {{candidate}} expected-error 0-1{{C++11}} void g() { -- 2.7.4