diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-08 01:30:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-06-08 01:30:54 +0000 |
commit | f4fe843aac730e2202b3c9c6c52649ee186ba788 (patch) | |
tree | 2a64c9e5a94210cd50cdb4646d94c89e0287e902 /test/SemaCXX/cxx0x-defaulted-functions.cpp | |
parent | 8c14de83188640bab9cae658e92a655e6d4fd484 (diff) |
Allow friend declarations of defaulted special member functions. Only
definitions of such members are prohibited, not mere declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx0x-defaulted-functions.cpp')
-rw-r--r-- | test/SemaCXX/cxx0x-defaulted-functions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx0x-defaulted-functions.cpp b/test/SemaCXX/cxx0x-defaulted-functions.cpp index 2ab0f73eae..595d428806 100644 --- a/test/SemaCXX/cxx0x-defaulted-functions.cpp +++ b/test/SemaCXX/cxx0x-defaulted-functions.cpp @@ -51,3 +51,9 @@ template<typename T> struct S : T { struct lit { constexpr lit() {} }; S<lit> s_lit; // ok S<bar> s_bar; // ok + +struct Friends { + friend S<bar>::S(); + friend S<bar>::S(const S&); + friend S<bar>::S(S&&); +}; |