blob: a2264958bce3018c826f211e0f33164951ee4d6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// RUN: clang-cc -fsyntax-only -verify %s
struct T {
void f();
};
struct A {
T* operator->(); // expected-note{{candidate function}}
};
struct B {
T* operator->(); // expected-note{{candidate function}}
};
struct C : A, B {
};
struct D : A { };
void f(C &c, D& d) {
c->f(); // expected-error{{use of overloaded operator '->' is ambiguous}}
d->f();
}
|