Sign in
gnu
/
gcc
/
7d75ea04cf6d9c8960d5c6119d6203568b7069e9
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-return2.C
blob: cb0185414afedc332241cb206afd6c05f699f478 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
// { dg-additional-options "-Wno-return-type" }
constexpr
int
f
(
int
i
)
{
}
constexpr
int
i
=
f
(
42
);
// { dg-error "flows off the end|in .constexpr. expansion of " }