1 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 ~Y(); // expected-note 3{{declared private here}}
10 struct X : T { }; // expected-error 2{{private destructor}}
12 struct Z; // expected-note{{forward declaration}}
15 X<Y> x; // expected-note{{implicit default destructor}}
16 Y y; // expected-error{{private destructor}}
20 @implementation A // expected-note{{implicit default constructor}}
24 Z z; // expected-error{{incomplete type}}