1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc struct NotAggregateBase {}; 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc struct A : NotAggregateBase { 6*f4a2713aSLionel Sambuc private: 7*f4a2713aSLionel Sambuc A() = default; // expected-note {{here}} 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc A a = {}; // expected-error {{calling a private constructor}} 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc struct B : NotAggregateBase { 12*f4a2713aSLionel Sambuc explicit B() = default; // expected-note {{here}} 13*f4a2713aSLionel Sambuc }; 14*f4a2713aSLionel Sambuc B b = {}; // expected-error {{chosen constructor is explicit}} 15