// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
;
;
;
X3 x3;
// expected-note@-2 {{first required here}}
// expected-error@-4 {{call to implicitly-deleted default constructor of 'X3'}}
;
X4 x4;
// expected-note@-2 {{first required here}}
// expected-error@-4 {{call to implicitly-deleted default constructor of 'X4'}}
;
;
;
Y3 y3;
;
Y4 y4;
// More tests
;
// Test default initialization which *requires* a constructor call for non-POD.
Z1 z1;
// expected-note@-2 {{first required here}}
// expected-error@-4 {{call to implicitly-deleted default constructor of 'Z1'}}
// Ensure that value initialization doesn't use trivial implicit constructors.
// This is valid
;
U u;