1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 ctor(); // expected-note{{implicitly declared private here}}
8 ~dtor(); // expected-note 3 {{implicitly declared private here}}
12 new ctor
[0]; // expected-error{{calling a private constructor of class 'ctor'}}
13 new dtor
[0]; // expected-error{{temporary of type 'dtor' has private destructor}}
14 new dtor
[3]; // expected-error{{temporary of type 'dtor' has private destructor}}
15 new dtor
[3][3]; // expected-error{{temporary of type 'dtor' has private destructor}}