Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type25.C
blob: ef5c8265541b4e943096f32a04ca1fd86680fe50 [
file
] [
log
] [
blame
]
// PR c++/80951
// { dg-do compile { target c++17 } }
void
f
()
noexcept
;
void
g
();
template
<
bool
E
>
constexpr
bool
h
(
void
(*)()
noexcept
(
E
))
{
return
E
;
}
static_assert
(
h
(
f
));
static_assert
(!
h
(
g
));