// RUN: %clang_cc1 -std=c++11 -verify %s
//
// Note: [class.inhctor] was removed by P0136R1. This tests the new behavior
// for the wording that used to be there.
;
// A[n inheriting] constructor [...] has the same access as the corresponding
// constructor [in the base class].
;
;
B b0;
B b1; // expected-error {{calling a protected constructor}}
B b2; // expected-error {{calling a private constructor}}
;
;
;
FA fa0;
FA fa1; // expected-error {{calling a protected constructor}}
FA fa2; // expected-error {{calling a private constructor}}
// It is deleted if the corresponding constructor [...] is deleted.
;
;
H ; // expected-error {{call to deleted constructor of 'H'}}
H ; // expected-error {{call to deleted constructor of 'H'}}
// Core defect: It is also deleted if multiple base constructors generate the
// same signature.