Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / recovery-tree-transform-crash.cpp
blob9776aeb9b3310317f73bb721a53a875e1f925d97
1 // RUN: %clang_cc1 -verify -frecovery-ast -frecovery-ast-type %s
3 template <class T> struct Ptr { T *operator->() const; };
5 struct ABC {
6 void run();
7 };
9 Ptr<ABC> call(int); // expected-note {{candidate function not viable}}
11 void test() {
12 call()->run(undef); // expected-error {{no matching function for call to 'call'}} \
13 expected-error {{use of undeclared identifier}}