Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if12.C
blob: 005aa80fc093adf6394013c9122182094bcdbb9d [
file
] [
log
] [
blame
]
// PR c++/80562
// { dg-do compile { target c++17 } }
struct
T
{
int
i
;
constexpr
auto
foo
()
{
return
false
;
}
};
template
<
class
MustBeTemplate
>
constexpr
auto
bf
(
T t
)
{
if
constexpr
(
t
.
foo
())
{
return
false
;
}
return
true
;
}