repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
PR27037.cpp
blob
422de0e6371acdd74ea8cbe8a61e6678edc62aab
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
struct
A
{
4
void
f
();
5
};
6
7
struct
B
:
A
{};
8
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
}