xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/PR7944.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // PR7944
3 
4 #define MACRO(x) x
5 
fB6 struct B { int f() { return 0; } };
bA7 struct A { B* b() { return new B; } };
8 
g()9 void 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