1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 struct A {
4 void f();
5 };
6
7 struct B : A {};
8
m()9 void m() {
10 const B b;
11 (b.*&B::f)(); // expected-error{{drops 'const' qualifier}}
12 ((&b)->*&B::f)(); // expected-error{{drops 'const' qualifier}}
13 }
14