13 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// PR79443 4#define MACRO(x) x5 6struct B { int f() { return 0; } };7struct A { B* b() { return new B; } };8 9void g() {10 A a;11 MACRO(a.b->f()); // expected-error{{reference to non-static member function must be called; did you mean to call it with no arguments?}}12}13