You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
381 B
17 lines
381 B
// RUN: %clang_cc1 -std=c++11 -verify %s
|
|
|
|
struct NotAggregateBase {};
|
|
|
|
struct A : NotAggregateBase {
|
|
private:
|
|
A() = default; // expected-note {{here}}
|
|
};
|
|
A a = {}; // expected-error {{calling a private constructor}}
|
|
|
|
struct B : NotAggregateBase {
|
|
explicit B() = default; // expected-note {{here}}
|
|
};
|
|
B b = {}; // expected-error {{chosen constructor is explicit}}
|
|
B b2{};
|
|
B b3;
|