1 // RUN: %clang_cc1 -std=c++11 -verify %s
3 // Note: [class.inhctor] was removed by P0136R1. This tests the new behavior
4 // for the wording that used to be there.
7 A(...); // expected-note {{candidate constructor}}
8 A(int = 0, int = 0, int = 0, int = 0, ...); // expected-note 3{{candidate constructor}} expected-note 2{{candidate inherited constructor}}
9 A(int = 0, int = 0, ...); // expected-note 3{{candidate constructor}} expected-note 2{{candidate inherited constructor}}
11 template<typename T
> A(T
, int = 0, ...);
13 template<typename T
, int N
> A(const T (&)[N
]); // expected-note {{candidate constructor}} expected-note {{candidate inherited constructor}}
14 template<typename T
, int N
> A(const T (&)[N
], int = 0); // expected-note {{candidate constructor}} expected-note {{candidate inherited constructor}}
17 struct B
: A
{ // expected-note {{because base class 'A' has multiple default constructors}}
18 using A::A
; // expected-note 6{{inherited here}}
24 A a0
{}; // expected-error {{ambiguous}}
25 B b0
{}; // expected-error {{deleted}}
27 A a1
{1}; // expected-error {{ambiguous}}
28 B b1
{1}; // expected-error {{ambiguous}}
30 A a2
{1,2}; // expected-error {{ambiguous}}
31 B b2
{1,2}; // expected-error {{ambiguous}}
39 A a5
{1,2,3,4,5}; // ok
40 B b5
{1,2,3,4,5}; // ok
51 A a9
{"foo"}; // expected-error {{ambiguous}}
52 B b9
{"foo"}; // expected-error {{ambiguous}}
56 template<typename
...Ts
> X(int, Ts
...);