2015-07-25 09:19:32 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
|
2017-09-22 03:54:12 +08:00
|
|
|
// expected-no-diagnostics
|
2015-07-25 09:19:32 +08:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
virtual ~A();
|
|
|
|
};
|
|
|
|
template <class>
|
|
|
|
struct B {};
|
|
|
|
struct C {
|
|
|
|
template <typename>
|
|
|
|
struct D {
|
|
|
|
~D() throw();
|
|
|
|
};
|
|
|
|
struct E : A {
|
2017-09-22 03:54:12 +08:00
|
|
|
D<int> d;
|
2015-07-25 09:19:32 +08:00
|
|
|
};
|
2017-09-22 03:54:12 +08:00
|
|
|
B<int> b;
|
2015-07-25 09:19:32 +08:00
|
|
|
};
|