blob: b99a134328efcda565487ddc531a7b26372169f2 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
class Z { };
class Y {
public:
Y(const Z&);
};
class X {
public:
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'}}
}