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" }
}