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