r184402 - Add a regression test for PR16370 next to the dr7 test case since they

Chandler Carruth chandlerc at gmail.com
Thu Jun 20 00:06:39 PDT 2013


Author: chandlerc
Date: Thu Jun 20 02:06:39 2013
New Revision: 184402

URL: http://llvm.org/viewvc/llvm-project?rev=184402&view=rev
Log:
Add a regression test for PR16370 next to the dr7 test case since they
seem closely related. (I'm happy to move this if others have a better
idea of where to put it.)

Modified:
    cfe/trunk/test/CXX/drs/dr0xx.cpp

Modified: cfe/trunk/test/CXX/drs/dr0xx.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr0xx.cpp?rev=184402&r1=184401&r2=184402&view=diff
==============================================================================
--- cfe/trunk/test/CXX/drs/dr0xx.cpp (original)
+++ cfe/trunk/test/CXX/drs/dr0xx.cpp Thu Jun 20 02:06:39 2013
@@ -66,6 +66,18 @@ namespace dr7 { // dr7: no
 
   class X { ~X(); }; // expected-note {{here}}
   class Y : X { ~Y() {} }; // expected-error {{private destructor}}
+
+  namespace PR16370 { // This regressed the first time DR7 was fixed.
+    struct S1 { virtual ~S1(); };
+    struct S2 : S1 {};
+    struct S3 : S2 {};
+    struct S4 : virtual S2 {};
+    struct S5 : S3, S4 {
+      S5();
+      ~S5();
+    };
+    S5::S5() {}
+  }
 }
 
 namespace dr8 { // dr8: dup 45





More information about the cfe-commits mailing list