Author: Richard Smith
Date: 2019-10-27T12:41:53-07:00
New Revision: 06d3fce01d4f4dfd743e24e1f553afbb6709610f

URL: 
https://github.com/llvm/llvm-project/commit/06d3fce01d4f4dfd743e24e1f553afbb6709610f
DIFF: 
https://github.com/llvm/llvm-project/commit/06d3fce01d4f4dfd743e24e1f553afbb6709610f.diff

LOG: PR43400: Add test that we can instantiate a friend function that is
defined as deleted.

The actual bug was fixed in commit d052a578.

Added: 
    

Modified: 
    clang/test/SemaTemplate/instantiate-friend-function.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaTemplate/instantiate-friend-function.cpp 
b/clang/test/SemaTemplate/instantiate-friend-function.cpp
index 08602d522df0..1a923a2e92e0 100644
--- a/clang/test/SemaTemplate/instantiate-friend-function.cpp
+++ b/clang/test/SemaTemplate/instantiate-friend-function.cpp
@@ -47,3 +47,10 @@ namespace PR10856_Root {
 
 // bool PR10856_Root::g<PR10856_Root::MyClass<int>, 
void>(PR10856_Root::MyClass<int>)
 // CHECK: call {{.*}} @_ZN12PR10856_Root1gINS_7MyClassIiEEvEEbT_
+
+namespace PR43400 {
+  template<typename T> struct X {
+    friend void f() = delete;
+  };
+  X<int> xi;
+}


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to