CWG 1394: Incomplete types as parameters of deleted functions
authorJames Y Knight <jyknight@google.com>
Sun, 22 May 2022 14:12:50 +0000 (10:12 -0400)
committerJames Y Knight <jyknight@google.com>
Sun, 22 May 2022 14:22:13 +0000 (10:22 -0400)
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

index 57d0f3c..9efbd52 100644 (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() {