aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/recovery-tree-transform-crash.cpp
blob: 9776aeb9b3310317f73bb721a53a875e1f925d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -verify -frecovery-ast -frecovery-ast-type %s

template <class T> struct Ptr { T *operator->() const; };

struct ABC {
  void run();
};

Ptr<ABC> call(int); // expected-note {{candidate function not viable}}

void test() {
  call()->run(undef); // expected-error {{no matching function for call to 'call'}} \
                         expected-error {{use of undeclared identifier}}
}