diff options
Diffstat (limited to 'test/SemaCXX/arrow-operator.cpp')
| -rw-r--r-- | test/SemaCXX/arrow-operator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/SemaCXX/arrow-operator.cpp b/test/SemaCXX/arrow-operator.cpp index 9c46e96afc0b..08b3cd4cc716 100644 --- a/test/SemaCXX/arrow-operator.cpp +++ b/test/SemaCXX/arrow-operator.cpp @@ -16,7 +16,10 @@ struct C : A, B { struct D : A { }; -void f(C &c, D& d) { +struct E; // expected-note {{forward declaration of 'struct E'}} + +void f(C &c, D& d, E& e) { c->f(); // expected-error{{use of overloaded operator '->' is ambiguous}} d->f(); -}
\ No newline at end of file + e->f(); // expected-error{{incomplete definition of type}} +} |
