Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / PR27037.cpp
blob422de0e6371acdd74ea8cbe8a61e6678edc62aab
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A {
4 void f();
5 };
7 struct B : A {};
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}}