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