summaryrefslogtreecommitdiffstats
path: root/test/CXX/class.derived/class.abstract/p16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/class.derived/class.abstract/p16.cpp')
-rw-r--r--test/CXX/class.derived/class.abstract/p16.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/class.derived/class.abstract/p16.cpp b/test/CXX/class.derived/class.abstract/p16.cpp
index c237ed9..2053218 100644
--- a/test/CXX/class.derived/class.abstract/p16.cpp
+++ b/test/CXX/class.derived/class.abstract/p16.cpp
@@ -22,7 +22,7 @@ struct H;
struct D {
virtual E &operator=(const E &); // expected-note {{here}}
virtual F &operator=(const F &);
- virtual G &operator=(G&&);
+ virtual G &operator=(G&&); // expected-note {{here}}
virtual H &operator=(H&&); // expected-note {{here}}
friend struct F;
@@ -34,8 +34,8 @@ private:
struct E : D {}; // expected-error {{deleted function '~E' cannot override a non-deleted function}} \
// expected-error {{deleted function 'operator=' cannot override a non-deleted function}}
struct F : D {};
-// No move ctor here, because it would be deleted.
struct G : D {}; // expected-error {{deleted function '~G' cannot override a non-deleted function}}
+ // expected-error@-1 {{deleted function 'operator=' cannot override a non-deleted function}}
struct H : D {
H &operator=(H&&) = default; // expected-error {{deleted function 'operator=' cannot override a non-deleted function}}
~H();
OpenPOWER on IntegriCloud