1 // RUN: %clang_cc1 -fsyntax-only -verify %s
13 public: explicit Y(float);
16 class X { // expected-note{{candidate constructor (the implicit copy constructor)}}
18 explicit X(int); // expected-note{{candidate constructor}}
19 X(float, float, float); // expected-note{{candidate constructor}}
20 X(float, Y); // expected-note{{candidate constructor}}
23 class Z { // expected-note{{candidate constructor (the implicit copy constructor)}}
25 Z(int); // expected-note{{candidate constructor}}
31 X x3(1.0, 1.0); // expected-error{{no matching constructor for initialization of 'X'}}
35 Z z; // expected-error{{no matching constructor for initialization of 'Z'}}
39 operator int*() const;
42 struct Derived : Base {
43 operator int*(); // expected-note {{candidate function}}
46 void foo(const Derived cd, Derived d) {
47 int *pi = cd; // expected-error {{no viable conversion from 'const Derived' to 'int *'}}