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