diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-09-12 15:48:15 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-09-12 15:48:15 +0000 |
| commit | fc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34 (patch) | |
| tree | e298dfeac1552e5af7492645fe77c69e19eeacb3 /clang/test/Modules/module-private.cpp | |
| parent | b63ab9477c8e1f7658a6249c181a5b953b08178f (diff) | |
| download | bcm5719-llvm-fc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34.tar.gz bcm5719-llvm-fc33bcfc4a2f7e4b7410f55f753c7d0c20c75b34.zip | |
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.
llvm-svn: 139497
Diffstat (limited to 'clang/test/Modules/module-private.cpp')
| -rw-r--r-- | clang/test/Modules/module-private.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Modules/module-private.cpp b/clang/test/Modules/module-private.cpp index 849897f7333..44215386226 100644 --- a/clang/test/Modules/module-private.cpp +++ b/clang/test/Modules/module-private.cpp @@ -96,8 +96,8 @@ struct public_class { 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__}} |

