r226371 - Add tests for two more asserts that r226365 fixed according to SLi's bot.

Nico Weber nicolasweber at gmx.de
Fri Jan 16 20:27:09 PST 2015


Author: nico
Date: Fri Jan 16 22:27:09 2015
New Revision: 226371

URL: http://llvm.org/viewvc/llvm-project?rev=226371&view=rev
Log:
Add tests for two more asserts that r226365 fixed according to SLi's bot.

Modified:
    cfe/trunk/test/SemaCXX/cxx0x-cursory-default-delete.cpp

Modified: cfe/trunk/test/SemaCXX/cxx0x-cursory-default-delete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx0x-cursory-default-delete.cpp?rev=226371&r1=226370&r2=226371&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx0x-cursory-default-delete.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx0x-cursory-default-delete.cpp Fri Jan 16 22:27:09 2015
@@ -45,11 +45,23 @@ struct bad_decls {
 struct DefaultDelete {
   DefaultDelete() = default; // expected-note {{previous declaration is here}}
   DefaultDelete() = delete; // expected-error {{constructor cannot be redeclared}}
+
+  ~DefaultDelete() = default; // expected-note {{previous declaration is here}}
+  ~DefaultDelete() = delete; // expected-error {{destructor cannot be redeclared}}
+
+  DefaultDelete &operator=(const DefaultDelete &) = default; // expected-note {{previous declaration is here}}
+  DefaultDelete &operator=(const DefaultDelete &) = delete; // expected-error {{class member cannot be redeclared}}
 };
 
 struct DeleteDefault {
   DeleteDefault() = delete; // expected-note {{previous definition is here}}
   DeleteDefault() = default; // expected-error {{constructor cannot be redeclared}}
+
+  ~DeleteDefault() = delete; // expected-note {{previous definition is here}}
+  ~DeleteDefault() = default; // expected-error {{destructor cannot be redeclared}}
+
+  DeleteDefault &operator=(const DeleteDefault &) = delete; // expected-note {{previous definition is here}}
+  DeleteDefault &operator=(const DeleteDefault &) = default; // expected-error {{class member cannot be redeclared}}
 };
 
 struct A {}; struct B {};





More information about the cfe-commits mailing list