Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
);
}