Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type3.C
blob: b678e05a74e570e1961ff933ae5ab36babbf02b1 [
file
] [
log
] [
blame
]
// Test for overload resolution.
// { dg-do compile { target c++17 } }
void
f
(
void
(*)()
noexcept
)
=
delete
;
void
f
(
void
(*)())
{
}
void
g
()
{}
void
h
()
noexcept
{}
int
main
()
{
f
(
g
);
f
(
h
);
// { dg-error "deleted" }
}