Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-ref1.C
blob: 6f88f82c0b09b31c60c1f787f8e81a50a0beaacc [
file
] [
log
] [
blame
]
// PR c++/64080
// { dg-do compile { target c++14 } }
constexpr
void
foo
(
int
&&
i
)
{
i
=
0
;
}
void
bar
(
int
&&
i
)
{
bool
b
=
noexcept
(
foo
(
static_cast
<
int
&&>(
i
)));
}