Skip to content
Snippets Groups Projects
Commit 265c902d authored by Chandler Carruth's avatar Chandler Carruth
Browse files

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.)

llvm-svn: 184402
parent 8a76fcf6
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,18 @@ namespace dr7 { // dr7: no ...@@ -66,6 +66,18 @@ namespace dr7 { // dr7: no
class X { ~X(); }; // expected-note {{here}} class X { ~X(); }; // expected-note {{here}}
class Y : X { ~Y() {} }; // expected-error {{private destructor}} 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 namespace dr8 { // dr8: dup 45
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment