// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
;
;
bad_union u; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_union2 u2; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_anon a; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_anon2 a2; // expected-error {{call to implicitly-deleted default constructor}}
// This would be great except that we implement
;
good_union gu;
;
good_anon ga;
;
good g;
;
;
bad_const bc; // expected-error {{call to implicitly-deleted default constructor}}
;
good_const gc;
;
;
;
bad_field_default bfd; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_base_default bbd; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_field_dtor bfx; // expected-error {{call to implicitly-deleted default constructor}}
;
bad_base_dtor bbx; // expected-error {{call to implicitly-deleted default constructor}}
;
;
has_amb_field haf; // expected-error {{call to implicitly-deleted default constructor}}
;
;
has_inacc_field hif; // expected-error {{call to implicitly-deleted default constructor}}
;
;
has_friend hf;
;
defaulted_delete dd; // expected-error {{call to implicitly-deleted default constructor}}
;
; // expected-error {{would delete it}}
// See also rdar://problem/8125400.