mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
67174765db
Differential Revision: https://reviews.llvm.org/D85423
15 lines
403 B
C++
15 lines
403 B
C++
// 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}}
|
|
}
|