2010-10-16 05:43:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
// PR7944
|
|
|
|
|
|
|
|
#define MACRO(x) x
|
|
|
|
|
|
|
|
struct B { int f() { return 0; } };
|
|
|
|
struct A { B* b() { return new B; } };
|
|
|
|
|
|
|
|
void g() {
|
|
|
|
A a;
|
2011-10-12 07:14:30 +08:00
|
|
|
MACRO(a.b->f()); // expected-error{{reference to non-static member function must be called; did you mean to call it with no arguments?}}
|
2010-10-16 05:43:24 +08:00
|
|
|
}
|