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