projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
258dac4
)
CWG 1394: Incomplete types as parameters of deleted functions
author
James Y Knight
<jyknight@google.com>
Sun, 22 May 2022 14:12:50 +0000
(10:12 -0400)
committer
James 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
patch
|
blob
|
history
diff --git
a/clang/test/CXX/drs/dr13xx.cpp
b/clang/test/CXX/drs/dr13xx.cpp
index
57d0f3c
..
9efbd52
100644
(file)
--- 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<typename ...T> void f(T..., int, T...) {} // expected-note {{candidate}} expected-error 0-1{{C++11}}
void g() {