Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Waddress-4.C
blob: a9fdfc48b4dd84ed7bf84afa4e083b00296aa7df [
file
] [
log
] [
blame
]
// PR c++/71121
// { dg-do compile { target c++14 } }
// { dg-options -Waddress }
struct
CC
{
void
mbr
();
};
constexpr
auto
getFunc
()
{
return
&
CC
::
mbr
;
}
constexpr
bool
xxx
(
void
(
CC
::*
_a
)())
{
constexpr
auto
f
=
getFunc
();
return
(
f
==
_a
);
}