summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-01-22 20:09:10 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-01-22 20:09:10 +0000
commit566184ac7591e693cc5375cfccd9ccac4ae6eddb (patch)
tree72f94bc20f190dd9c36dc422b269f9959b80eebd /clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
parent80429048db141e0bc5da60c568e43cb381d94dfd (diff)
downloadbcm5719-llvm-566184ac7591e693cc5375cfccd9ccac4ae6eddb.tar.gz
bcm5719-llvm-566184ac7591e693cc5375cfccd9ccac4ae6eddb.zip
When a special member is explicitly defaulted outside its class, and we reject
the defaulting because it would delete the member, produce additional notes explaining why the member is implicitly deleted. llvm-svn: 199829
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp')
-rw-r--r--clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp b/clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
index 0cebc10ade4..b9af67948bf 100644
--- a/clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
+++ b/clang/test/SemaCXX/cxx0x-deleted-default-ctor.cpp
@@ -59,7 +59,7 @@ struct good_const {
good_const gc;
struct no_default {
- no_default() = delete; // expected-note 3{{deleted here}}
+ no_default() = delete; // expected-note 4{{deleted here}}
};
struct no_dtor {
~no_dtor() = delete; // expected-note 2{{deleted here}}
@@ -114,7 +114,7 @@ struct defaulted_delete {
defaulted_delete dd; // expected-error {{call to implicitly-deleted default constructor}}
struct late_delete {
- no_default nd;
+ no_default nd; // expected-note {{because field 'nd' has a deleted default constructor}}
late_delete();
};
late_delete::late_delete() = default; // expected-error {{would delete it}}
OpenPOWER on IntegriCloud