// RUN: clang -fsyntax-only -verify %s
class Z { };
class Y {
public:
Y(const Z&);
};
class X {
X(int);
X(const Y&);
void f(X);
void g(short s, Y y, Z z) {
f(s);
f(1.0f);
f(y);
f(z); // expected-error{{incompatible type passing 'class Z', expected 'class X'}}
}