Remove the restriction on module-private friends. Since the friend
declaration may be the first declaration, we want the ability to that
declaration to be marked module-private.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139497 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Modules/module-private.cpp b/test/Modules/module-private.cpp
index 849897f..4421538 100644
--- a/test/Modules/module-private.cpp
+++ b/test/Modules/module-private.cpp
@@ -96,8 +96,8 @@
struct inner_struct;
static int static_var;
- friend __module_private__ void public_func(); // expected-error{{friend cannot be declared __module_private__}}
- friend __module_private__ struct public_struct; // expected-error{{friend cannot be declared __module_private__}}
+ friend __module_private__ void public_func_friend();
+ friend __module_private__ struct public_struct_friend;
};
template<> __module_private__ struct public_class<int>::inner_struct { }; // expected-error{{member specialization cannot be declared __module_private__}}