1 // Test for overload resolution.
2 // { dg-options -std=c++17 }
3 
4 void f(void (*)() noexcept) = delete;
f(void (*)())5 void f(void (*)()) { }
g()6 void g() {}
h()7 void h() noexcept {}
8 
main()9 int main()
10 {
11   f(g);
12   f(h);				// { dg-error "deleted" }
13 }
14