blob: fc52d101e871b73fdda9d6d894c55124e1ce8449 [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;
11 MACRO(a.b->f()); // expected-error{{base of member reference has function type}}
12}