Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.init / p7.cpp
blob1c1d793e8a5e6aa64f0361fc2218b41931b86e24
1 // RUN: %clang_cc1 -std=c++11 -verify %s
3 struct NotAggregateBase {};
5 struct A : NotAggregateBase {
6 private:
7 A() = default; // expected-note {{here}}
8 };
9 A a = {}; // expected-error {{calling a private constructor}}
11 struct B : NotAggregateBase {
12 explicit B() = default; // expected-note {{here}}
14 B b = {}; // expected-error {{chosen constructor is explicit}}
15 B b2{};
16 B b3;