xref: /aosp_15_r20/external/clang/test/CXX/over/over.over/p2.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s
2*67e74705SXin Li 
3*67e74705SXin Li template <typename T>
4*67e74705SXin Li T f0(T, T); // expected-note{{deduced conflicting types for parameter 'T' ('int' vs. 'float')}}
5*67e74705SXin Li 
test_f0()6*67e74705SXin Li void test_f0() {
7*67e74705SXin Li   int (*f0a)(int, int) = f0;
8*67e74705SXin Li   int (*f0b)(int, int) = &f0;
9*67e74705SXin Li   int (*f0c)(int, float) = f0; // expected-error{{address of overloaded function 'f0' does not match required type 'int (int, float)'}}
10*67e74705SXin Li }
11