[clang] [clang] Add tests for some CWG 5xx issues (PR #87909)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 01:16:25 PDT 2024


================
@@ -1568,6 +1568,18 @@ namespace dr391 { // dr391: 2.8 c++11
 }
 
 // dr392 is in dr392.cpp
+
+namespace dr393 { // dr393: 2.7
+
+template <typename T>
+struct S {};
+
+void f1(S<int (*)[]>);
+void f2(S<int (&)[]>);
+void g(int(*S<int>::*)[]);
----------------
cor3ntin wrote:

Can you add the January 2013 examples ? (both valid and invalid)

https://github.com/llvm/llvm-project/pull/87909


More information about the cfe-commits mailing list