You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
403 B
15 lines
403 B
4 months ago
|
// 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}}
|
||
|
}
|