Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if14.C
blob: 69af7753116b11e132cf52d4f30efe372850f77d [
file
] [
log
] [
blame
]
// PR c++/84421
// { dg-do compile { target c++17 } }
struct
A
{
constexpr
operator
bool
()
const
{
return
true
;
}
};
int
main
(){
auto
f
=
[](
auto
v
){
if
constexpr
(
v
){}
};
A a
;
f
(
a
);
}