[clang] 06d3fce - PR43400: Add test that we can instantiate a friend function that is
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 27 12:44:40 PDT 2019
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;
+}
More information about the cfe-commits
mailing list