[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / PR7944.cpp
blob51b3f6bccec009081cab172a80a702caf3b5dc4d
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // PR7944
4 #define MACRO(x) x
6 struct B { int f() { return 0; } };
7 struct A { B* b() { return new B; } };
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?}}