blob: a998a15c3e0b1e9313dcc9ee3900b141e964cfa8 [file] [log] [blame]
Nick Lewycky3d6c45d2010-10-15 21:43:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// PR7944
3
4#define MACRO(x) x
5
6struct B { int f() { return 0; } };
7struct A { B* b() { return new B; } };
8
9void g() {
10 A a;
Matt Beaumont-Gay65b34d72011-02-22 23:52:53 +000011 MACRO(a.b->f()); // expected-error{{base of member reference is a function}}
Nick Lewycky3d6c45d2010-10-15 21:43:24 +000012}