// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -fcxx-exceptions %s
int i = delete; // expected-error {{only functions can have deleted definitions}}
void ; // expected-note {{candidate function has been explicitly deleted}}
void ; // expected-note {{previous declaration is here}}
void ; // expected-error {{deleted definition must be first declaration}}
void ; // expected-note {{previous definition is here}}
void
void // expected-note {{candidate function}}
void ; // expected-note {{candidate function has been explicitly deleted}}
;
void
;
void
;
;
;
DelDtor dd; // expected-error {{attempt to use a deleted function}}
void ;
;
void ;
void ;
;
void // expected-note {{previous definition is here}}
void ; // expected-error {{redefinition of 'test4'}}
;
DelCtor dc1 = 0; // expected-error {{deleted}}
DelCtor ; // expected-error {{deleted}}
DelCtor dc3 = ; // expected-error {{deleted}}
DelCtor dc4; // expected-error {{deleted}}
DelCtor dc5 = 0; // expected-error {{deleted}}
DelCtor dc6 = ; // expected-error {{deleted}}
DelCtor dc7 = DelCtor; // expected-error {{deleted}}
DelCtor *dc8 = new ; // expected-error {{deleted}}
DelCtor *dc9 = new DelCtor; // expected-error {{deleted}}
DelCtor dc10 = ; // expected-error {{deleted}}
int ; // expected-note 2{{here}}
int dc11 = ; // expected-error {{deleted}}
int dc12 = ; // expected-error {{deleted}}
int ; // expected-note {{here}}
int dc13 = ; // expected-error {{deleted}}
int dc14 = ; // expected-error {{deleted}}
;
int ;
int dc15 = ; // expected-error {{deleted}}