aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-05-15 04:39:51 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-05-15 04:39:51 +0000
commit3003e1d6626d07e8fc4af95fad95b3a5d4c4af98 (patch)
tree34551eee521a8c701bfc32261f462ca62ca85750 /test/CXX/class
parent4b50263096457552ee86eb790c9638c6bb7357fa (diff)
Fold the six functions checking explicitly-defaulted special member functions
into one. These were all performing almost identical checks, with different bugs in each of them. This fixes PR12806 (we weren't setting the exception specification for an explicitly-defaulted, non-user-provided default constructor) and enforces 8.4.2/2's rule that an in-class defaulted member must exactly match the implicit parameter type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/class')
-rw-r--r--test/CXX/class/p6-0x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/class/p6-0x.cpp b/test/CXX/class/p6-0x.cpp
index f2cf482821..e153b4daaf 100644
--- a/test/CXX/class/p6-0x.cpp
+++ b/test/CXX/class/p6-0x.cpp
@@ -19,7 +19,7 @@ struct Trivial2 {
Trivial2(const Trivial2 &) = default;
Trivial2(Trivial2 &&) = default;
Trivial2 &operator=(const Trivial2 &) = default;
- Trivial2 &operator=(Trivial2 &) = default;
+ Trivial2 &operator=(Trivial2 &&) = default;
~Trivial2() = default;
};