Skip to content

Commit 06d3fce

Browse files
committed
PR43400: Add test that we can instantiate a friend function that is
defined as deleted. The actual bug was fixed in commit d052a57.
1 parent faee39b commit 06d3fce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ namespace PR10856_Root {
4747

4848
// bool PR10856_Root::g<PR10856_Root::MyClass<int>, void>(PR10856_Root::MyClass<int>)
4949
// CHECK: call {{.*}} @_ZN12PR10856_Root1gINS_7MyClassIiEEvEEbT_
50+
51+
namespace PR43400 {
52+
template<typename T> struct X {
53+
friend void f() = delete;
54+
};
55+
X<int> xi;
56+
}

0 commit comments

Comments
 (0)