blob: b85593318dfa6f277ead308612d2f08090b6b44b [file] [log] [blame]
Douglas Gregorf1991ea2008-11-07 22:36:19 +00001// RUN: clang -fsyntax-only -verify %s
2struct X {
3 operator bool();
4};
5
6int& f(bool);
7float& f(int);
8
9void f_test(X x) {
10 int& i1 = f(x);
11}
12
13struct Y {
14 operator short();
15 operator float();
16};
17
18void g(int);
19
20void g_test(Y y) {
21 g(y);
22}