15 lines · cpp
1// RUN: %clang_cc1 -verify -frecovery-ast -frecovery-ast-type %s2 3template <class T> struct Ptr { T *operator->() const; };4 5struct ABC {6 void run();7};8 9Ptr<ABC> call(int); // expected-note {{candidate function not viable}}10 11void test() {12 call()->run(undef); // expected-error {{no matching function for call to 'call'}} \13 expected-error {{use of undeclared identifier}}14}15