blob: d391a04d072244a57f025ad950819308a340cc6f [file] [log] [blame]
Fariborz Jahanian455acd92009-09-22 19:53:15 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3struct BASE {
4 operator int &(); // expected-note {{candidate function}}
5};
6struct BASE1 {
7 operator int &(); // expected-note {{candidate function}}
8};
9
10struct B : public BASE, BASE1 {
11
12};
13
14extern B f();
15
16const int main() {
17 return f(); // expected-error {{conversion from 'struct B' to 'int const' is ambiguous}}
18}
19