1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Li template<typename T> T f0(T); // expected-note{{candidate function}} 4*67e74705SXin Li int f0(int); // expected-note{{candidate function}} 5*67e74705SXin Li test_f0()6*67e74705SXin Livoid test_f0() { 7*67e74705SXin Li int (*fp0)(int) = f0; 8*67e74705SXin Li int (*fp1)(int) = &f0; 9*67e74705SXin Li float (*fp2)(float) = &f0; 10*67e74705SXin Li } 11*67e74705SXin Li 12*67e74705SXin Li namespace N { 13*67e74705SXin Li int f0(int); // expected-note{{candidate function}} 14*67e74705SXin Li } 15*67e74705SXin Li test_f0_2()16*67e74705SXin Livoid test_f0_2() { 17*67e74705SXin Li using namespace N; 18*67e74705SXin Li int (*fp0)(int) = f0; // expected-error{{address of overloaded function 'f0' is ambiguous}} 19*67e74705SXin Li float (*fp1)(float) = f0; 20*67e74705SXin Li } 21