Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-return4.C
blob: 8f29628148fafa486ec7b35fd23d30a7ada51418 [
file
] [
log
] [
blame
]
// PR c++/86678
// { dg-do compile { target c++14 } }
constexpr
bool
always_true
()
{
return
true
;
}
int
f
()
{
return
1
;
}
constexpr
int
g
()
{
if
(
always_true
())
return
0
;
return
f
();
}