// RUN: %clang_cc1 -fsyntax-only -verify %s// PR7944#define MACRO(x) xstruct B {intf() {return0; } };struct A { B*b() {return new B; } };voidg() {
A a;MACRO(a.b->f());// expected-error{{reference to non-static member function must be called; did you mean to call it with no arguments?}}}