mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
50a2c2c19d
and DefaultFunctionArrayLvalueConversion. To prevent significant regression for should-this-be-a-call fixits, and to repair some such regression from the introduction of bound member placeholders, make those placeholder checks try to build calls appropriately. Harden the build-a-call logic while we're at it. llvm-svn: 141738
13 lines
311 B
C++
13 lines
311 B
C++
// 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;
|
|
MACRO(a.b->f()); // expected-error{{reference to non-static member function must be called; did you mean to call it with no arguments?}}
|
|
}
|