17 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -verify %s2 3struct NotAggregateBase {};4 5struct A : NotAggregateBase {6private:7 A() = default; // expected-note {{here}}8};9A a = {}; // expected-error {{calling a private constructor}}10 11struct B : NotAggregateBase {12 explicit B() = default; // expected-note {{here}}13};14B b = {}; // expected-error {{chosen constructor is explicit}}15B b2{};16B b3;17