Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type2.C
blob: f4e9e3b6c7ac976ed1e3ba2b1592c1d416733ba4 [
file
] [
log
] [
blame
]
// Test for function pointer conversion on template arguments.
// { dg-do compile { target c++17 } }
template
<
void
(*
P
)()>
struct
A
{
};
void
f
()
noexcept
{
}
constexpr
void
(*
p
)()
noexcept
=
f
;
A
<f>
a
;
A
<p>
b
;