blob: be75b6c3105545ea1257ff3af54d86295830ba03 [file] [log] [blame]
Sebastian Redl1dc2c1d2011-03-12 13:44:23 +00001// RUN: true
2// Disabled for 2.9
3//%clang_cc1 -std=c++0x -fsyntax-only -verify %s
Sebastian Redl08905022011-02-05 19:23:19 +00004
5struct B1 {
6 B1(int);
7 B1(int, int);
8};
9struct D1 : B1 {
10 using B1::B1;
11};
12D1 d1a(1), d1b(1, 1);
13
14D1 fd1() { return 1; }
15
16struct B2 {
17 explicit B2(int, int = 0, int = 0);
18};
19struct D2 : B2 { // expected-note {{candidate constructor}}
20 using B2::B2;
21};
22D2 d2a(1), d2b(1, 1), d2c(1, 1, 1);
23
24D2 fd2() { return 1; } // expected-error {{no viable conversion}}
25
26struct B3 {
27 B3(void*); // expected-note {{inherited from here}}
28};
29struct D3 : B3 { // expected-note {{candidate constructor}}
30 using B3::B3; // expected-note {{candidate constructor (inherited)}}
31};
32D3 fd3() { return 1; } // expected-error {{no viable conversion}}