blob: 4bcd5aa01ec3bbb0618eae01b64eb3fcd5a12321 [file] [log] [blame]
Douglas Gregor60d62c22008-10-31 16:23:19 +00001// RUN: clang -fsyntax-only %s
2class Z { };
3
4class Y {
5public:
6 Y(const Z&);
7};
8
9class X {
10public:
11 X(int);
12 X(const Y&);
13};
14
15void f(X);
16
17void g(short s, Y y, Z z) {
18 f(s);
19 f(1.0f);
20 f(y);
21 f(z); // expected-error{{incompatible}}
22}
23