commit | f4fe843aac730e2202b3c9c6c52649ee186ba788 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Jun 08 01:30:54 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Jun 08 01:30:54 2012 +0000 |
tree | 2a64c9e5a94210cd50cdb4646d94c89e0287e902 | |
parent | 8c14de83188640bab9cae658e92a655e6d4fd484 [diff] [blame] |
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
diff --git a/test/SemaCXX/cxx0x-defaulted-functions.cpp b/test/SemaCXX/cxx0x-defaulted-functions.cpp index 2ab0f73..595d428 100644 --- a/test/SemaCXX/cxx0x-defaulted-functions.cpp +++ b/test/SemaCXX/cxx0x-defaulted-functions.cpp
@@ -51,3 +51,9 @@ 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&&); +};