// RUN: %clang_cc1 -fexceptions -verify %s
struct A { };
struct B { };

struct X0 { 
  virtual ~X0() throw(A); // expected-note{{overridden virtual function is here}} 
};
struct X1 { 
  virtual ~X1() throw(B); // expected-note{{overridden virtual function is here}} 
};
struct X2 : public X0, public X1 { }; // expected-error 2{{exception specification of overriding function is more lax than base version}}
 

Add Sema test case for exception-specifiers implicitly added to destructors.
Add Sema test case for exception-specifiers implicitly added to destructors.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@107395 91177308-0d34-0410-b5e6-96231b3b80d8
