2010-03-14 02:12:56 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2010-03-14 02:12:56 +08:00
|
|
|
|
|
|
|
struct X { ~X(); };
|
|
|
|
template <typename T>
|
|
|
|
struct A {
|
|
|
|
struct B { X x; };
|
|
|
|
struct C : public B {
|
|
|
|
C() : B() { }
|
|
|
|
};
|
|
|
|
};
|